Are there any scripts available for converting a GTFS timetable to transit-line file?

I'm looking to develop a python script to be used in CUBE that would convert a GTFS timetable directory to a transit-line file. Has this already been developed by Citilabs and would it be possible to use the script in my application?

Many thanks 

Hamish