> > #!/usr/bin/python > # -- developed using Python 2.7.3 > > class BME280:
Not strictly related to the question, but you probably want to use so called "new style classes" when developing a new program for Python version 2. In other words, use: class BME280(object): instead of class BME280: -- https://mail.python.org/mailman/listinfo/python-list