Pybind11 exception registration workaround
Use an older implementation of the register_exception from pybind11 when compiling against Python 3.6 to work around the new implementation hanging when used with Python 3.6.
(cherry picked from commit d58e8b51)
Co-authored-by: Morten Ofstad morten.ofstad@bluware.com