This is a re-implementation of LCA in python form here which was in NodeJS
on running the python script using python LCA.py
for the following tree
the output looks like
the output from Node-JS version was
I have implemented unit tests using the unittest module.