Fixed bug of Client.check_key

Monkey patch of Client.check_key in case of Python < 2.6