Added python impl