Added level to syslog messages (otherwise missing). Cosmetic changes.

De-duped getOS and renamed it get_os
Ran pep8 on config.py