Fix CatchOutput types on Py3k.