Fix python url parsing

It seems the behaviour changes because of something I don't understand

On my ubuntu 13.10 box, I get this:

Python 2.7.5+ (default, Feb 27 2014, 19:37:08)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urlparse
>>> urlparse.urlparse("git://foo.bar/baz#hello")
ParseResult(scheme='git', netloc='foo.bar', path='/baz', params='', query='', fragment='hello')

On ubuntu 12.04 I get this:

Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urlparse
>>> urlparse.urlparse("git://foo.bar/baz#hello")
ParseResult(scheme='git', netloc='foo.bar', path='/baz#hello', params='', query='', fragment='')

Note path contains the fragment in one but not in the other.

Fix this by parsing a known uri and patching if necessary.

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>