Command Line Interpreter in Python