'Returns whether the argument is a triple.'

@classmethod
def is_triple(cls, triple):

    return (isinstance(triple, (list, tuple)) and (len(triple) == 3) and isinstance(triple[0], string_types) and isinstance(triple[1], (list, tuple)) and isinstance(triple[2], dict))
