Change main to run_monitor

Python throws an error when main is imported from another module.