Make pyOpenSSL future-proof

Notably stop breaking cryptography 1.3.
4 files changed