Fix import error for urlparse.
Fix import error for urlparse.

The urlparse module was moved under urllib in Python 3.0. With this
change, if urlparse is not found in the Python 2.x location, we try to
import it from the Python 3.x location.
weluse/dougrain-forms