updated cli.py