Fix bug for python<2.6 where url parsing fails.