First version of python API