Update rec.py