Update ap_monitor.py, provision writer.py