Fix #140
Merge branch 'death-march' of github.com:bipy/pyqi into death-march
Output handlers include newlines

Also fixed issue with unit test and added a new one. Fixes #138.
Merge branch 'death-march' of github.com:bipy/pyqi into death-march
Merge branch 'death-march' of github.com:bipy/pyqi into death-march
Merge pull request #142 from jrrideout/death-march

Fix #140