With python zipfile.writestr, for example, you can set the arcname of the file to write:
zipfile.writestr
arcname
impo