statistics_by_len.py works after module correction