Fix #771 — For some reason max can be int or long.
Merge pull request #771 from mozilla-services/771_test_maxfd

test_maxfd — failing with py27