Make all of the examples py3 syntax friendly (#816)

3 files changed