I have tried
import urllib.request
or
import urllib
The path for my urllib is /Library/Framework
/Library/Framework
import urllib.request as urllib
then in the code call urlopen function
example:
test = urllib.urlopen("----")