get messages in python pt 1