This is wrong. Use python_do_script for that.