updated monitor.py
fixed pep-8 error