Python library+script to create self-extracting and executing pipe-friendly bash scripts