Removed unused variable. Removed urllib dependency. Added support for using a HTTP proxy (currenly hard-coded; will need to be moved to a config file later).