def update(self):
        vehicle = self.api.vehicles(vid=self.vid)['vehicle']
        newbus = self.fromapi(self.api, vehicle)
        self.__dict__ = newbus.__dict__
        del newbus
Update this bus by creating a new one and transplanting dictionaries.
dataset/ETHPy150Open nhfruchter/pgh-bustime/pghbustime/datatypes.py/Bus.update