Adding the first implementation in python.