fix code to work with bzip files

Community Data Science Collective || Want to submit a patch?