fixed python mode function names