Python Attributeerror Built In Function Or Methodology