https request  by proxy

When  trying to process a https request through a http proxy the library return;

*socket error: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol*

The fix is to connect first  to  the proxy and then wrap the socket with ssl. Now,  these steps occurs the other way.