padmonitor.py ported