You could properly raise `ValueError("stim needs to be list of int, '>' or '<', not %r" % stim)`