issue #158: Replace python-3.4 only statistics module with hand-made
stats-funcs.