Added python ctypes interfaces.