def DiffLocals(OldLocals, NewLocals):
    """
	return dictionary of values that are different.
	"""
    DiffDict = {}
    for k, v in NewLocals.items():
        if k in OldLocals:
            if not OldLocals[k] is v:
                DiffDict[k] = v
        else:
            DiffDict[k] = v
    return DiffDict
