Make first argument to syslog.openlog be a string

syslog.openlog expects its first argument to be a string.
Without this change running under ipython fails.
Merge pull request #5122 from willthames/openlog_str

Make first argument to syslog.openlog be a string