Python requests segmentation fault

Hi, I’m trying to get the ubuntu-make snap to work properly…
I added the ctypes patch form snapcraft to it, and that seems to work, but now I get a segmentation fault.
With a little debugging and printing random statements in the code I managed to see that it stops executing and fails at a closing(session.get(url ...
This line to be precise: https://github.com/ubuntu/ubuntu-make/blob/master/umake/network/download_center.py#L132

I can’t figure it out, since the non snap works…