Python: several fixes
This reverts commit 768c970c8d. Moved to staging, as it causes ~16k rebuilds.
768c970c8d
This allows the library to interact gracefully with additional certificates users might have configured in /etc/ssl/certs/ca-certificates.crt via NixOS.