fix bugs in service-status.py