fixed cli.py to use entry points