Fix Python 3 crash for echo_via_pager