urllib.quote needs a string