Add Proxy to a Python Scrypt
import urllib2
import os
os.environ['http_proxy'] = "http://127.0.0.1:8080/"
print urllib2.urlopen("http://whateversite.com").read()
Source:
http://stackoverflow.com/questions/10358214/how-do-i-add-proxy-support-into-my-python-script-reddit-api-wrapper-python