Port python smbus to python3