Replacement for bz2.BZ2File with features from newest CPython
