python mode settings