Fix comments and unittest for market.py and style

Trying to make the right commit to  the develop branch.
I'm making these changes in my PR too.

@Ignat99, could ```settings['notaries']``` possibly be ```None```, and in that case, shouldn't we also assign ```[]``` to it?
Same question with ```settings['trustedArbiters']```.