catch python errors and report them on cell. Closes #690
Merge branch 'bugfix-690' into develop