Flex 3 and Python



I would like to use my Python database connectivity logic
with FLEX 3. The concept is that I could call my python code from
within Flex with some SQL code have it connect and execute the
request and then output the results into an XML file. I could then
have the FLEX program read in the XML file. Is it possible to make
a Python call from within FLEX? Thank You