Python script for checking and restarting Windows services