Update pinyin.py

If key DOES NOT exist in word_dict,just ignore it.