def getTuple ( self ) : return ( self . x , self . y , self . w , self . h )
python use of tuple for coordinate storage
Returns the shape of the region as ( x y w h )
def getTuple(self):
        """ Returns the shape of the region as (x, y, w, h) """
        return (self.x, self.y, self.w, self.h)