text: # https://stackoverflow.com/questions/57964626/permissions-denied-when-trying-to-invoke-go-aws-lambda-function
  import zipfile
  import time
  
  def make_info(filename):
      info = zipfile.ZipInfo(filename)
      info.date_time = time.localtime()
      info.external_attr = 0x81ed0000
      info.create_system = 3
      return info
  
  def changePerms(src, dst):
    zip_source = zipfile.ZipFile(src)
    zip_file = zipfile.ZipFile(dst, "w", zipfile.ZIP_DEFLATED)
  
    for cur in zip_source.infolist():
        zip_file.writestr(make_info(cur.filename), zip_source.open(cur.filename).read(), zipfile.ZIP_DEFLATED)
  
    zip_file.close()