replacing my own cli loop with python's cmd module