code: def getScans(self, modifications=True, fdr=True):
          
          if not self.scans:
              for i in self:
                  yield i
          else:
              for i in self.scans.values():
                  yield i
          yield None
docs: get a random scan