chkserv python script