#! /usr/bin/python2

from ctypes import *

test = cdll.LoadLibrary("./test.so")

class TestT(Union):
    _fields_ = [("a", c_char_p),
                ("b", c_char_p),
                ("c", c_char_p),
                ("d", c_char_p),
                ("e", c_char_p),
                ("f", c_char_p),
                ("g", c_bool),
                ("h", c_bool),
                ("i", c_bool)]

test.f.restype = TestT
test.f()
