Simple wrapper over zx7 compressor. Avoids having to compile it for every platform over your zx spectrum sources/framework. Zx7 code is included for convenience, but author is 'Einar Saukas'
import pyzx7
new_filename = pyzx7.compress('out.bin')
Will automatically generate out.bin.zx7