Python module for determining trip and travel mode from GPS data