def clean_par_dict(par_dict):
    """
    Cleam up dictionary containing all parameters such that it can
    be written into a json file.
    """
    par_dict['path_scan'] = str(par_dict['path_scan'])
    par_dict['path_save'] = str(par_dict['path_save'])
    par_dict['callback_log'] = str(par_dict['callback_log'])
    par_dict['callback_progress'] = str(par_dict['callback_progress'])
    par_dict['callback_status'] = str(par_dict['callback_status'])
    return par_dict