the code is a bit more complicated since unions can have structs or simple types.
The clang.index python library does not look in the default path where the library is installed