Building user & course messages in python client