See, https://stackoverflow.com/questions/1227121/compare-object-instances-for-equality-by-their-attributes-in-python