Update resource_monitor.py