Update PyMonitor.py

Optional logging to log.txt