import message to python