Python API is now mostly complete