Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
I may have misread the [PEP8 document](http://legacy.python.org/dev/peps/pep-0008/). Can you point me to the section that bears out your point?