Slot car lap counter controller using python