bring in changes from Adafruit Python library