I'd go for string substitution here (and elsewhere), i.e. `"http://%s/confroom" % SERVER_NAME`, it's easier to read and avoids the need to convert to str