Arduino String Length Function Python Code