Raspberry Pi Wheel Encoder Python