Python replacement to the ProcessMonitor scripts