split terp.py into modules