D3 Widget Example Python 3.x compatability