Python3: use six.moves.urllib.parse instead of urlparse

This makes the code compatible with both Python 2 and 3.

Change-Id: Idd71d2041eea6de71209535e4aa4d3d43256c836
Merge "Python3: use six.moves.urllib.parse instead of urlparse"