Mint, pick a few clumps and rub it over the cage and leave a few bits sticking out of the mesh on you cage.
Most sorts of mint seem to work but some are especially good, i have one sort growing that is a golden leaf and smells quite citrusy and seems to really repel the flies. Its worth trying anything out of the herb garden, if its aramatic and quite pleasent then chances are that flies dont like it.