[pylint] Add comments and docstrings to market.py