In that case, why don't you ask people who create the module/library to pin required library to specific version. For example,
Typical user doesn't have to touch Python anyway. They should just run installer or portable executable which already contain all required file. Electrum already does that with installer, portable version and AppImage.