Python library for comparing values from an object to a dictionary with selective attribute comparision