#!/usr/bin/env python3.1

from sys import argv, exit
from fractions import Fraction
try:
    from vfr import parse_tc, get_ts
except ImportError:
    parse_tc = False

if len(sys.argv) == 4:
    fps=sys.argv[1]
    frames=int(sys.argv[3])
    parse_tc(fps, frames, tc)

else:
    print("tccreator.py <fps/v1 timecodes> <output v2 timecodes> <frames>")

@@ -43,45 +43,8 @@
 argv
-, exit%0Afrom fractions import Fraction
 %0Atry
@@ -77,16 +77,8 @@
 e_tc
-, get_ts
 %0Aexc
@@ -102,24 +102,55 @@
     
-parse_tc = False
+exit(%22tcconv requires vfr.py in order to work%22)
 %0A%0Aif
@@ -154,20 +154,16 @@
 %0Aif len(
-sys.
 argv) ==
@@ -177,21 +177,19 @@
  fps
-=sys.
+ = 
 argv%5B1%5D%0A
     
@@ -184,16 +184,33 @@
 argv%5B1%5D%0A
+    tc = argv%5B2%5D%0A
     fram
@@ -215,17 +215,15 @@
 ames
-=
+ = 
 int(
-sys.
 argv
@@ -257,17 +257,16 @@
 es, tc)%0A
-%0A
 else:%0A  
@@ -271,24 +271,20 @@
     
-prin
+exi
 t(%22tcc
-reator
+onv
 .py 

Fix and clean tcconv.py