testing the python API