Switch to Python 3
Switch to Python 3

* urllib → urllib.parse
* urllib2 → urllib.request
* unicode → str
* dict.items() without changing size
* utf-8 for urlopen

Change-Id: Ia06efb67a369433a550410aeae1b8aa7214ed054

wikimedia/labs-tools-translatemplate,wikimedia/labs-tools-translatemplate