def METHOD_NAME(filename):
  global ALL,OUTFILES
  try:
    if os.path.exists(filename):
      key="x"
      while  key not in ["y","Y","n","N","a","A","all","All",""] and not ALL:
        print "\nOutput file %s already exist and will be overwriten!!!" % filename
        key=input("Do you want to proceed? (y,n,[all])")
        ALL=key in ["a","A","all","All",""]
      if key in ["y","Y",""] or ALL: 
        os.remove(filename)
      else:
        sys.exit()
    zpout=zp.ZipFile(filename,"w")
    zpout.close()
    zpout=zp.ZipFile(filename,"a")
    OUTFILES.append(zpout)
    return zpout
  except:
    a,b,c=sys.exc_info()
    b.code == None or sys.stderr.write("Could not create output file\n")
    sys.exit(3)