Revert "Merge monitor.py"

This reverts commit 3f8c3340226f0a2870180e4ab11b7f754c2ab4f1.