Improve the python program in Rasp-pi.