adjust to pyopenssl upstream