Managed to use a urllib python 2.6 feature... converting code to work in 2.5