Make "assay.raises()" work under both Python 2, 3