fixed Rect python wrapper