Check against correct types

The "fd" can be a type of long, so isinstance has to be tested against int_types and not only "int".
Not sure if the bug can be reproduced on linux.
My config:

Window 8.1 x64
redis 2.6.12 x64
celery 3.1
python 2.7.5, x64