tvrage.py functionally structured