BF: make example compatible with Python3

Print statement; use of __doc__