Porting urllib.parse to Python2. WIP.