Python Try Catch Keyerror In Python Mean