Converting matplotlib figures to D3.js visualizations with mpld3