I have recently shifted from behind the proxy to direct connection settings. I removed http_proxy and now my apt-get update and upgrade works fine but somehow I am not able o connect to internet through the shell (python urllib2 or wget)

Any ideas as to what settings are missing?