Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
You should go and read the standards. http://legacy.python.org/dev/peps/pep-0008/