Modified to work with python3 and quick2wire.i2c (instead of package
smbus)