Add monitor_charging.py for monitoring charging and restarting.