The question is, what kind of flies are they? Drain flies (also known as moth, filter, or sewage flies) and fruit flies (also called pomace or vinegar flies) are some of the most common culprits.
Rather than fruit juice, grappa is made with the remnants of wine production -- the skin, seeds, and stems -- called pomace.