Python: Hacking Bokeh to create useful tools