enable support for alternative data compression

which can be supplied to the client.
fix python2.6 failure with assertRaises syntax

pass functiona and options rather than use as context
Merge pull request #18 from underrun/compression_options

enable support for alternative data compression