open up entity APIs to python (not just cython)