Fixed shell chunks for Python3