Added new functions and a bug fix to openssl.py