def FillFormWithValues(window, values_dict):
    """
    Fills a window with values provided in a values dictionary { element_key : new_value }

    :param window: (Window) The window object to fill
    :param values_dict: (Dict[Any:Any]) A dictionary with element keys as key and value is values parm for Update call
    """
    for element_key in values_dict:
        try:
            window.AllKeysDict[element_key].Update(values_dict[element_key])
        except Exception as e:
            print(
                'Problem filling form. Perhaps bad key?  This is a suspected bad key: {}'
                .format(element_key))
