fixed syslog support after python2.7.4