code: def push_pv(self, tokens):
          
          logger.debug("Pushing PV data: %s" % tokens)
  
          bus = self.case.buses[tokens["bus_no"]-1]
  
          g = Generator(bus)
          g.p = tokens["p"]
          g.q_max = tokens["q_max"]
          g.q_min = tokens["q_min"]
          # Optional parameter
  #        if tokens.has_key("status"):
  #        g.online = tokens["status"]
  
          self.case.generators.append(g)
docs: Creates and Generator object, populates it with data, finds its Bus
          and adds it.