Use dict.keys in update command
Don't refuse to uninstall programs which are in a partially installed state.