BESIII and SuperB: distributed job management with Ganga