Created exercise-15.4.py with draw_rectangle function that accepts a canvas and rectangle object and draws accordingly.