use python2 and 3 compatible print example

per @signalpillar