If you are interested in running Python code from a web-based form, you need IronPython and Silverlight (or moonlight on Linux).
IronPython is a full implementation of Python running on the Microsoft CLI engine.
ironpython in a browser
--
>
> Getting software installed on K-12 computers can be very difficult. To avoid
>> that collection of problems, I would like to be able to host a development
>> environment on my own servers, so the students will need nothing more than a
>> web browser (and Internet connection). Does anyone know of any off-the-shelf
>> solutions? Though I'm leaning toward Python, I'm not yet committed.
>>