CODE:
import networkx as net from urllib.request import urlopen def read_lj_friends(g, name): # fetch the friend-list from LiveJournal response=urllib.urlopen(\'
You've imported urlopen directly, so you should refer to it like that rather than via urllib:
urlopen
urllib
response = urlopen('...')