changed urllib imports for python3 compability