Created by: lmalina
Split into sdds and tbt package
write more unit tests
optimise for python 3
Pythonise the code as it was more or less copied from Java