def create_message(username, message):
    """ Creates a standard message from a given user with the message 
        Replaces newline with html break """
    message = message.replace('\n', '<br/>')
    return '{{"service":1, "data":{{"message":"{mes}", "username":"{user}"}} }}'.format(mes=message, user=username)
Creates a standard message from a given user with the message 
        Replaces newline with html break