Use SIGKILL after delay and only if need

Sometimes OB is not reacting on SIGTERM, we need SIGKILL it.
This change add some delay before we do it.
Remove redundant pass-es.
Remove unused variable (idx).
Enforce new-style capturing of exception object (PEP 3110).
Invoke join on separator.
Remove unused import.
Replace calls to map with list comprehensions.

In Python 2, a call to `map` builds an actual list,
so it behaves exactly the same as the comprehension syntax.
The latter reads better.
Replace one-off lists with generators.

As the entire list doesn't get built, less space is needed
and performance may improve.
Drop unnecessary slice.
Fix typos.
Remove unused import.
Merge pull request #534 from Renelvon/style_fixes

Style fixes
Merge pull request #533 from hoffmabc/master

Switch empty order messages
Update stop.sh

Change "wait for clean shutdown" time to 5s
Merge pull request #526 from Rav3nPL/patch-2

Use SIGKILL after delay and only if need
Extend database schema for orders refunds
Raise ValueError if contact not in bucket