type 'tuple' has no attribute 'len', changed len(tuple) to be len(s)