fixed latency in python version
replace pull up by pull down and add support for seven buttons