Added json/Python object interconversion

Fixes #1. This requires `mofgen` to be on the `PYTHONPATH`. If not, cif
interconversion still works.