modify example to use print function, rather than print statement
Merge pull request #60 from chris-morrison/feature/bugfix/print-statement-to-print-func

modify example to use print function, rather than print statement