@amirco to integrate python w mm, your python pgm outputs to stdout. then a mm module node_helper reads the stdout and sends messages to the browser side of the mm module to handle display.
see my PythonPrint module for the basic structure. https://github.com/sdetweil/MMM-PythonPrint
there are existing modules for iframe, but I don’t know how you control them from outside