PEP-8, Python Zen, refactor and reduce code (part 14 in master module/threads)
PEP-8, Python Zen, refactor and reduce code (part 15 in master module/webui/app)
PEP-8, Python Zen, refactor and reduce code (part 16 in master module/webui)