* Refactor recorder queue handling * Address pylint's concerns * Implement workaround for mypy bug * Address review comments