[Updating the answer of Bryan Oakley]
self.commandMenu.index("end")
won't work.
Use self.commandMenu.index(tk.END)
instead.
[EDIT]Make sure to catch error when the menu has no element : index(tk.END)
will return None
and you will have an error Cannot add int and NoneType.