Fix compat for python 3
Expand the user agent a bit