Fixed the imports for the python generator. Dont know the original idea of the original import formatting, but now it at least generates the messages.