a rewrite of the python transitfeed module