Total python noob needing help with a pie menu

So, I’m following this video http://www.cgmasters.net/free-tutorials/blender-2-72-feature-pie-menus/
And as soon as I deviate and try to add my own option it doesn’t work. In this case it’s simply undo.
This is my code.

import bpyfrom bpy.types import Menu


# spawn an edit mode selection pie (run while object is in edit mode to get a valid output)




class VIEW3D_PIE_template(Menu):
    # label is displayed at the center of the pie menu.
    bl_label = "Select Mode"
    bl_idname="mesh.mypie"


    def draw(self, context):
        layout = self.layout


        pie = layout.menu_pie()
        # operator_enum will just spread all available options
        # for the type enum of the operator on the pie
        #pie.operator_enum("mesh.select_mode", "type")
        pie.operator("ed.undo")




def register():
    bpy.utils.register_class(VIEW3D_PIE_template)




def unregister():
    bpy.utils.unregister_class(VIEW3D_PIE_template)




if __name__ == "__main__":
    register()


    bpy.ops.wm.call_menu_pie(name="VIEW3D_PIE_template")



What am I doing wrong? I’m sure it’s something super easy I’m not seeing.

call the menu at the end with:

bpy.ops.wm.call_menu_pie(name=“mesh.mypie”)