Python file version of TripleMap.py. This code is created by using DoubleMapInterface.py as skeleton. Now we can delete DoubleMapInterface since TripleMap.py has all functions defined in DoubleMapInterface.py