Revert a7f51fa..bdb9bef

This rolls back to commit a7f51fa15608242aa5dbc8f4523d6650d22aa002.
v2.1.2 Reinstated stats.py