oft: Convert to print_function

Replace the Python 'print' keyword ('print x') with the function
version ('print(x)'). This is the recommended approach for new Python
code.

In addition, replace a number of 'print' calls with either logging or
calls to 'die' to be consistent.

Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>