Keep py3.X compatibility for urllib.urlencode

For py3.X, urllib has no attr urlencode while python 2 has.
Change urlencode to keep compatibility.

Change-Id: I9fc041d6fd8b65d0a19f38ae1915dcb2a1b42553
Partial-Bug: #1280105
2 files changed