Create cmd.py

extended cmd.py file to fit the intpreter's needs, testing completer implementations