Python Set And Get Object Attributes