Got it to work in 22 minutes
Python version works
Another implementation using ReactJS
merging