Sigh. urlparse behaviour differs within 2.7.x.