made tcx_analyzer.py more oop