Here's my solution to the the UA_STRING problem
````
if os.environ.get("SERVER_SOFTWARE") is not None:
    platform_info = os.environ.get("SERVER_SOFTWARE")
else:
    platform_info = platform.platform(True)

UA_STRING = '%%s PRAW/%s Python/%s %s' % (__version__,
                                          sys.version.split()[0],
                                          platform_info)
````
That should work. See any problems with that?