Migrating `mdcliapi.py` to Majordomo 0.2

The code is currently not tested.
Adding a TODO about Using `yield` for partials