import pytercpp
print(pytercpp.ter("I have a dog".split(), "I have a cat".split()))
s = 'A small team of United Nations military experts would focus on providing managerial and organizational advice to the relevant officials of the Ministry of Defence of the Central African Republic in charge of the restructuring process.'
print(pytercpp.ter(s.split(), s.split()))

