Python3 script fixes. Part2.