You can easily just have a package.format and a python script that extracts from that format and moves the files to relative locations or an absolute location if you know that. Is that what you're looking for?
You can use zipfile for the extracting/compressing and shutil and os to move/delete/modify the files.