use python dict's default get method
Merge pull request #3 from chinesedfan/update

use python dict's default get method