Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
@hoffmabc ```settings['secret'] = settings.get('secret')``` will assign ```None``` if the field isn't found.  If we want an empty string it needs to be ```settings['secret'] = settings.get('secret', '')```.
Changing it in my PR too.