Edit: RefPat.py