fix Rules.py (seq generation)