Remove spurious print statements in sample snippets to make the doc easier to follow