title: I just upgraded my Python Bokeh to 0.12.4 I get error JSON object has wrong type string
body: <p>I just upgraded my Python Bokeh to 0.12.4 I get error JSON object has wrong type string.   I don't have any local static CDN libraries.  There is some info <a href="https://groups.google.com/a/continuum.io/forum/#!msg/bokeh/l4rIoTim8Tk/jXTR65l2BAAJ" rel="nofollow noreferrer">here</a> but it is confusing.  Does anybody have a simple answer for how to fix?</p>
  
  <p>Note: my bokeh works fine in Jupyter.  It is failing in the Flask web embedding case here:</p>
  
  <pre><code>script, div = components(plot) return render_template('graph.html',
  script=script, div=div)
  </code></pre>
  
  <p>where the graph.html template looks like this:</p>
  
  <pre><code>&lt;link
      href="http://cdn.bokeh.org/bokeh/release/bokeh-0.12.4.min.css"
      rel="stylesheet" type="text/css"&gt;
  &lt;link
      href="http://cdn.bokeh.org/bokeh/release/bokeh-widgets-0.12.4.min.css"
      rel="stylesheet" type="text/css"&gt;
  
  &lt;script src="http://cdn.bokeh.org/bokeh/release/bokeh-0.12.4.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://cdn.bokeh.org/bokeh/release/bokeh-widgets-0.12.4.min.js"&gt;&lt;/script&gt;
  
  {{ script |safe }}
  </code></pre>