def strip_prefix_from_dict_values(input_dict, prefix):
    """Remove a given prefix from every item in a dict"""
    for key in list(input_dict.keys()):
        if key in ['output_dir', 'input_bam']:
            continue
        if isinstance(input_dict[key], str) and input_dict[key].startswith(
            prefix):
            input_dict[key] = input_dict[key][len(prefix):].strip('/')
    return input_dict
