passing information to mod_wsgi and returning to div tag
Drupal is a PHP-language framework, and wsgi/Django are waay too heavy for you IMHO. They're kinda designed to be used for the whole website.
How about passthru in php?

passthru — Execute an external program and display raw output

You could execute the python script (maybe even with command line arguments from POST) and display raw HTML that the script outputs.
long time reader first time poster.
I've recently been tasked with incorporating some python into a webpage for my employer. After doing some research it seemed that mod_wsgi and Django were the way to go, and it seemed to work great. However, my employer would like to maintain the site in Drupal and incorporate python as such I don't think the Django (or any other python framework) is viable as there would be two competing frameworks running around. I've managed to setup a wsgi-scripts bin and can get python code to run however I have run into a few problems:
1.) The only method I've found for passing information to a wsgi/python script is via POST and GET, is there an alternative or is this the standard method?
2.) When I return from a wsgi/python script a new page is always loaded. Is it possible to have the script return to a div environment? e.g.) Someone fills in a form, submits it, data is processed by python, output is returned and displayed at the bottom of the page.
Thanks,
Paul