The OP hasn't returned since asking that question. If your application is teaching Python, or any other programming language, there are two wonderful additional plug-ins for Moodle. Check the Virtual Programming Lab activity and the question type CodeRunner.
General help
RUNNING PYTHON CODE IN MOODLE
This discussion has been locked so you can no longer reply to it.