Boost.Python: Python 3 module initialization fixes (using PyModuleDef), based on patches provided by Austin Bingham