Maybe you need to enable i2c manually:
And use 2to3 to convert old python2 script to python3 version.