[FEATURE] Fix style code by PEP 8 for market.py

http://legacy.python.org/dev/peps/pep-0008/#id12
http://legacy.python.org/dev/peps/pep-0008/#id14