fix python function naming inconsistency