Hello bisenberger,
I'm posting the updated script for Split in Blocks, hope it works now. If not - let me know.
The main differences are that now PySide2 module should be imported instead of PySide and some interface elements have been moved to QtWidgets from QtGui class. But most of the changes can be found in Python API reference in the first post.