Modify summarize_table to import output_handler

DO NOT MERGE unless/until https://github.com/bipy/pyqi/pull/241 is merged