finish crfrule.py