change python mode settings