adding rect.py