#include <Python/pythonlogcapture.h>
Derived from https://github.com/mloskot/workshop/blob/master/python/emb/emb.cpp Distributed under the Boost Software License, Version 1.0