possible subtype impl
py3 fix
Merge pull request #1393 from bokeh/feature/subtype

Possible subtype implementation