Fix TypeError in summary view on Python 3 (#26)