Fix sudo use for Python dependencies.