Debug Mode added to python template