You'll need to take the same approach with urllib.parse as you did with urllib2.request:

try:
	import urllib.parse as urllib
except:
	import urllib