This line (or more accurately the call to self.compute_stats and the resulting dict) is the core business logic of the whole script.  It would benefit greatly from some unit tests.