Support Pythons without bz2 support

bz2 is a semi-optional module in the Python standard library that isn't always available.  I've seen this on "small" Python installations on ARM hardware, and it's possible to do this when building from source without the bzip2 library installed, or on Debian with only the `python-minimal` package.