fix RuntimeError (SSL Session wasn't initialized.)

Fixes #21. Thanks a lot to @loganathan-rs for the patch