Use six.moves.urllib.parse instead of urlparse

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

Partial-Bug: 1287323
Change-Id: Ia9db2732e65a457d547f14a8d5936cfa086a63b8