refactor Python language kernel: make single thread explicit with its own submodule