python logic - carsharing