Check If Server Crashed

So right now i am hosting on windows and some times an engine error happens. Since we are running it simply from a sort of batch file. Now my idea would be to check to see if it is responding thru something like python and killing the process. Now i have looked around and can not seem to find a module or library for source query on python. Right now the bat file i use to run the server is the srcds watchdog script from online. Does anyone have an idea on if they is either a python module for it, or if at worst is there a way on windows to be able to check if the engine crashed and restart the server?

ServerDoc does what you are asking for.