Loop Through Object Attributes Python