Modified the stop time processing part of the script, to avoid several linear searches through stops and trips inside the inner loop (instead use the relevant Get() methods of the transitfeed library).
Modified the stop time processing part of the script, to avoid several linear
searches through stops and trips inside the inner loop (instead use the
relevant Get() methods of the transitfeed library).

This results in a large speedup in processing time.

andybotting/ptv2gtfs