Added python implementation src