Add python bindings for Compressor.