Raspberry Pi Distance Meter with Python