docs: def FilePrinter(filename, mode='a', closing=True):
      path = os.path.abspath(os.path.expanduser(filename))
      """ Opens the given file and returns a printer to it. """
      f = open(path, mode)
      return Printer(f, closing)