def string_to_elements(string):
    """
    :string: elements separated by colon as in s1:s2:s3
    Return list of elements
    """

    ss = string.split(':')
    elements = []
    for s in ss:
        if s:
            elements.append(bytes.fromhex(s))
    return elements