Added a python script to solve it.