Changed tripCost.vehicle property to a vehicle object instead of an id. Changed python method to interepret the request appropriately