fixed the bug with pyGPIO_km.py