should be fileno().
Fixed test__core_stat.py
Fixed subprocess tests.