Import urlencode() properly in Python 3