[FEATURE] comments and style PEP 8 in market.py