To check OMi status of Unix/Linux/Windows server

Pls help to provide a script in python which should do " checking OVO status in unix/linux server and OMi status in windows server" and send a mail.
If suppose OVO/OMi status is not running in the server, then it should provide the server name
and Finally printing the count of all server which status in running and count of servers which status is not running…