The PythonConsoleWindow plugin provides a console window from which you can interact with Python using OpenCOR’s Python support:
Note: the Python Console window relies on IPython, for which a tutorial can be found here.