Updated smonitor.py