how to draw a rectangle in python