urlparse only has the fix in 2.7.4 and later.