Python Attribute Error Has Been Corrected