rose_ana: cumf: read output by lines

Also fix style problems to improve pylint score.
Merge pull request #1159 from matthewrmshin/fix-cumf-memory

rose_ana: cumf: read output by lines