Added a utility method in util/__init__.py that takes in the ordinary urlencode parameters and ensures that they will return the same URL between python 2 and 3. This was necessary to ensure that mock data URLs are resolving to the same mock data path between python 2 and 3, as otherwise tests will fail.