Working example of compiling structure and new type to work with Python. At least the compilation pass, but test are not done for calling it from Python.