BF: add check for bz2 file having fileno

bz2 file does not have fileno in Python 3.2 and 2.7 on travis at least.