pep8 for base.py and its tests
Modification of the count function of Message class and its test