Wrote a Python prototype for libcalis.