working on the python API