A simple lib to run code on codepad and retrieve results.
pip install ehp
pip install libpad
code = """
for ind in xrange(10):
url, output = libpad.sandbox(code, lang='python')
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.