You can potentially return LZF compression here, but below in the scheme matching, you are treating it as _ and throwing an exception. Either you should be handling LZF compression correctly in the scheme matching, or retuning None here