Move the application directory to /opt/smonitor
Change code accoding to PEP8 recommendations