code: def setMaxSpeed(self, typeID, speed):
          
          self._connection._sendDoubleCmd(
              tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MAXSPEED, typeID, speed)
docs: setMaxSpeed(string, double) -> None
  
          Sets the maximum speed in m/s of vehicles of this type.