     fputs(message + "\n", stderr)
   }
 }
-
-// Methods of `PythonLibrary` required to read the environment variables.
-private extension PythonLibrary {
-  enum Environment: String {
-    private static let keyPrefix = "PYTHON"
-    private static let keySeparator = "_"
-    
-    case library = "LIBRARY"
-    case version = "VERSION"
-    case loaderLogging = "LOADER_LOGGING"
-    
-    var key: String {
-      return Environment.keyPrefix + Environment.keySeparator + rawValue
-    }
-    
-    var value: String? {
-      guard let value = getenv(key) else { return nil }
-      return String(cString: value)
-    }
-  }
-}

    for majorVersion in supportedMajorVersions {
      for minorVersion in supportedMinorVersions {
        for libraryPath in libraryPaths {
          guard let pythonLibraryHandle = loadPythonLibrary(
            at: libraryPath, majorVersion: majorVersion,
            minorVersion: minorVersion) else {
              continue
          }
          return pythonLibraryHandle

        }
      }
    }
    return libraryPaths
  }()
  
