Substituted httplib with urllib2.

Urllib2 is now used instead of httplib. Urllib2 takes care of proxies
automatically.