Python List Object Has No Attribute To Csv