basic python api