def splitmessage(message):
    """Returns a tuple containing the command and arguments from a message.
    Returns None if there is no firstword found
    """

    assert isinstance(message, str)
    words = message.split()
    if words:
        return (words[0], words[1:])