cli.py: python command line tools for lmb