First revision of message.py