Global context logger, proxy context to threads

Added flake8 + pylint