Fixed bug of Client.check_key in case of Python < 2.6

In Python 2.4 and 2.5 string.translate doesn't support None as possible value for the table argument.

In this case I monkey patch the function using the old code (copied from version 1.47)

If I need to do some changes, please let me know.