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

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

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