Python interface to some openssl function based on ctypes module