Update Python configuration