def filterTheDict(dictObj, callback):  # DGTEMP - Not useful anymore
    """ Function copied from https://thispointer.com/python-filter-a-dictionary-by-conditions-on-keys-or-values/
    Iterate over all the key value pairs in dictionary and call the given
    callback function() on each pair. Items for which callback() returns True,
    add them to the new dictionary. In the end return the new dictionary."""
    newDict = dict()
    # Iterate over all the items in dictionary
    for (key, value) in dictObj.items():
        # Check if item satisfies the given condition then add to new dict
        if callback((key, value)):
            newDict[key] = value
    return newDict