According to latest ‘rumours’, Python 3.x will be in Homeserver 4.13, while all existing (Python 2.x blocks will still run). So no need for this fix/idea.
Now, let’s wait for 4.13 :)