Change to using urllib urlencode + a dict for the params