Make examples and docs more Python 3 aware

Mainly just fixing print statements. Everything should still work in Python 2 as well. In some places, `__future__` imports are added.