Python wrapper around some openssl functions (libcrypto)