faster shingling method, use doctests with nosetests