python mode fix