This should use `self._print` instead of just str.