Beautified monitor.py