testpy.py: cut very long outputs