PEP8 Fix style issues in stats & tests