Making mode detection transferable: extracting activity and travel episodes from GPS data using the multinomial logit model and Python