__author__ = 'house'

from app import monitor

if __name__ == '__main__':
    monitor.start()

__author__ = 'house'

from app import monitor

if __name__ == '__main__':
    monitor.start()


Add one line to the last of main.py according to py specification.