Change print to click.echo
Change print to click.echo

Click has its own print handler that takes care of all the awful compatibility things. See: http://click.pocoo.org/5/utils/#printing-to-stdout
cebel/pyctd