Using world.get_mb_constraint_solver() and world.set_mb_constraint_solver() will lead to segmentation fault due to double free from both world's destructor and PyBind11's destructor.
One solution is to remove them from the Python API until they are made safe. I can make a PR if this is a desired fix.