Removed redundant imports, updated URL param builder to use
urllib.urlencode