General adjustments for Python3 image