Updating python mode