revising and testing leds.py on Python 2 and Python 3