Is there any python module which is a parser for user input data and executes user commands and processes Python syntax? For example:
user>for i in range(3):
... doSomething()
Above line will execute doSomething() method 3 times. I know there are many packages with parsers but I haven't seen any with possibility to execute Python syntax.