The iPhone EULA (or maybe app store agreements) prohibit scripting and interpreting, but if you have a jailbroken one you can install Python (search for Python in Cydia).
Coding using the iPhone keyboard isn't much fun, and as it's unsupported there are limited APIs - but there is a Python/Objective-C package, and a sample GUI app which loads a long list from a data provider (with full scrolling), and with a jailbroken phone and SSH, you can upload and edit remotely and so on.