basic python API