I am working on a long-term project for myself (for now!). I was thinking about designing a graphical console where user can input their python code (within the API of my project) and extend the program. Of course,They can write their own modules and extend it but how can it be implemented as a part of customized GUI? In simple words, I want to take user input IN MY GUI and parse it as python code inside. It is like I want to create small compiler/interpreter for my software.