add python mode settings