Object of type nonetype has no len. Len в python с условием. int has no len.