Convert cherami to be a Python library.