You can use below script to stop any service with name provided in the script,
Note: In this script we have illustrated how to stop printer spooler service.
import os;
result=os.popen('wmic service spooler call StopService').read();
print(result);
sample output would be as below,