python: allow unhooking commands by name