Update monitor.py

format
update sample