code: def walk_up_dirs(path):
      
      prev_path = None
      current_path = os.path.abspath(path)
      while current_path != prev_path:
          yield current_path
          prev_path = current_path
          current_path = os.path.dirname(prev_path)
docs: Yields absolute directories starting with the given path, and iterating
      up through all it's parents, until it reaches a root directory