Fix catpix and catfacts on py3.