Updated for python 3 and VTT conversions