Demo implementation with python