syslog transport and some minor pep8