Initial commit of monitor.py and test_service.py