Some ideas for a Python API