Use Python 2.5/2.6 compatible syntax with bz2.BZ2File (#10403)
Merge pull request #753 from manics/tablestest_bz2_10403

Use Python 2.5/2.6 compatible syntax with bz2.BZ2File (#10403)