bug fixed: missing import urllib.urlencode