python version support for urllib