TCC update

Used and lightly modified the old tcc_edit.py from the
tcc_database_manager repo.