Try Except Keyerror Python Dictionary Operations