you need to reference the tagid of the object in the raise function:
rec = canvas.create_rectangle(x, y, x+100, y+100,tags="dummy") canvas.tag_raise("dummy", "all")