def replace_cp_in_dict_list(in_list, cp):
  """
  Remove the common prefix (cp) for keys of filenames in a list of dictionaries.
  e.g. for readme files.
  """
  out_list = []
  for d in in_list:
    key, value = list(d.items())[0]
    out_list.append({ key.replace(cp,''): value  })
  return out_list