Python 3: Update examples

Mostly just changing print to a function.