Added code for calling C++ directly from Python using ctypes