Django runpython. I guess it can help you.