Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
grammar: "Ran" or "Runs". This is a callback method, should it should not be in imperative form.