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