Rewrote not to use nodejs but python