Expose TLS verification to Python