Simpler parallelism approach, no need for locks
Move some logic from app.py to mcbench.benchmark.
Formatting changes for pep8.