command.py: implement basic interpreter