結果 : how to handle key error in python dictionary