Python Attributeerror Built In Function To Sort An Array