Update rect.py

small fix