python testing program with len of string