Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
Prior to that, you held the opposite point of view about lazy logging. I thought you had doubts about the replacement '%'  to ','. Unfortunately, I have to wait for the time will come in more professional developers.