Python Attributeerror Built In Function To Sort Array