Converting the DEMO code to python