rose_ana: cumf: read output by lines

Also fix style problems to improve pylint score.

This should fix #1134.