How To Assign A Attribute In Python