[messages] rename class to msg_class

makes it possible to use the python parser using xmlobject since class is a reserved word.