Monitoring: fixed warning on build. Test: fixed pep8 warnings and indent in run_test.py (lts)