Wanted to bring some attention to a possible license incompatibility. The project is a BSD license, but the function _find_libraries_with_enum_process_module_ex uses Stackoverflow code, which is licensed as CC BY-SA 4.0. The copyleft provisions of the Stackoverflow license would necessitate that work building upon it would also need to be license as CC BY-SA 4.0.
IANAL, so I don't know the exact proper way to include the code and stay compliant with the licensing. I think it is possible to have that code in a separate file and that file itself be licensed with CC BY-SA 4.0.