If you use connection.vehicles() instead of connection.vehicle(), you will get a list of all the vehicle objects. if you have only a single vehicle, car = connection.vehicles()[0] would work. You could check that there is exactly one vehicle with len(connection.vehicles()) == 1.