fixed tests to pass on python2 still have a couple issues on py3 where urllib.quote is used