Add test
Split check_key() method.
Support Python 2.6
Merge pull request #18 from methane/keycheck

Add check_key method.