script now compatible with python3 urllib import