if lengths.count(lengths[0]) != len(lengths):
            raise SyntaxError('All values of mod_species should be a list with equal length')