Fix print in resource doctest for py3