python example extended to work with node demo server