try : import pylzsfe except ImportError: import pylzsfe_wrapper as pylzsfe

Handles the compatibility issues. As far as I can tell, pylzsfe offers two methods -- compress and decompress, so should be straightforward to implement the ctypes wrappers and whatever wrappers to simulate that pylzsfe interface. That's sort of the only real option you have, certainly in the short term.