     }
     return nil
   }
-  
+
   static func loadPythonLibrary(
     at path: String, version: PythonVersion
-  ) -> UnsafeMutableRawPointer? {
+    ) -> UnsafeMutableRawPointer? {
     let versionString = version.versionString
-    
+
     if let requiredPythonVersion = Environment.version.value {
       let requiredMajorVersion = Int(requiredPythonVersion)
       if requiredPythonVersion != versionString,

        "Loaded legacy Python library, using legacy symbols...")
    }
  }
  
  static func loadSymbol(
    _ libraryHandle: UnsafeMutableRawPointer, _ name: String
  ) -> UnsafeMutableRawPointer? {
    #if canImport(Darwin) || canImport(Glibc)
    return dlsym(libraryHandle, name)
    #elseif os(Windows)
    let moduleHandle = libraryHandle
        .assumingMemoryBound(to: HINSTANCE__.self)
    let moduleSymbol = GetProcAddress(moduleHandle, name)
    return unsafeBitCast(moduleSymbol, to: UnsafeMutableRawPointer?.self)
    #endif
  }
  
  static func loadSymbol<T>(
    name: String, legacyName: String? = nil, type: T.Type = T.self
  ) -> T {
    var name = name
    if let legacyName = legacyName, PythonLibrary.shared.isLegacyPython {
      name = legacyName
    }
    
    log("Loading symbol '\(name)' from the Python library...")
    return unsafeBitCast(
      loadSymbol(PythonLibrary.shared.pythonLibraryHandle, name),

    #elseif os(Windows)
    let pythonLibraryHandle = UnsafeMutableRawPointer(LoadLibraryA(path))
    #endif

    if pythonLibraryHandle != nil {
      log("Library at '\(path)' was sucessfully loaded.")
    }
