code: def replace_in_files(dirname, replace):
      
      filepath = os.path.abspath(dirname / "requirements.in")
      if os.path.isfile(filepath) and header_footer_exists(filepath):
          replaced = re.sub(Utils.exp, replace, get_file_string(filepath))
          with open(filepath, "w") as f:
              f.write(replaced)
          print(color(
              "Written to file: {}".format(filepath),
              fg='magenta', style='bold'))
docs: Replace current version with new version in requirements files.