Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
I just start make test. Just wanted to check lazy output logs. Made to output to the console.