changed the way I make inv_keymap to support python2.6