Replace the in-house stubbing by the facilities offered by pyfakefs for running tests. We don't use `io.open` anymore, because pyfakefs does not stub it correctly. We rely on a patched version of pyfakefs, as a few bug remain in the official repo.