python pop dictionary key if exists