code: def get_by_scheme(path, lookup, default):
      
      parsed = urlparse(path)
      class_name = lookup.get(parsed.scheme, default)
      if class_name is None:
          raise NotImplementedError("No implementation for scheme " + parsed.scheme)
      return class_name
docs: Helper function used by get*ForPath().