Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
In this case, you have the chance to change the line later according to your understanding, and thank me for what I put quotes.