[python] Add missing api.