Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
I understand that this test does not compare the output automatically. I had planned to finish it for more specific tests and check the logs along the way, for the formalities.
I can take the rows of logs and check in assert.