docs: def ensure_file(path):
          """ Checks if file exists, if fails, tries to create file """
          try:
              exists = isfile(path)
              if not exists:
                  with open(path, 'w+') as fname:
                      fname.write('initialized')
                  return (True, path)
              return (True, 'exists')
          except OSError as e:  # pragma: no cover
              return (False, e)