Initial commit for Python API. Doesn't compile yet.