Update doctest print function to pass in Python 2