Do a conditional import for ssl based on Python version

This is in prepration for supporting Python 3.2's ssl module.
Port ssl module to Python 3.2 for pypy3

This is a very quick port and needs to be checked for correctness.
Merge branch 'ssl-3.2' into develop