cli.py: do function lookups by name, now CLI can be subclassed multiple times