code: def setSpeedFactor(self, typeID, factor):
          
          self._connection._sendDoubleCmd(
              tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_FACTOR, typeID, factor)
docs: setSpeedFactor(string, double) -> None
  
          .