docs: def _patch_file(path, content):
      """Will backup the file then patch it"""
      f = open(path)
      existing_content = f.read()
      f.close()
      if existing_content == content:
          # already patched
          log.warn('Already patched.')
          return False
      log.warn('Patching...')
      _rename_path(path)
      f = open(path, 'w')
      try:
          f.write(content)
      finally:
          f.close()
      return True