Ensur we always write out our tweet stats if an error happens reading in tweets.
Bug: in compound dictionary writing to python

A consequence of the previous optimisation with respect to cumulative
capacity (which was included in the bug-fix)