Arduino String Replace Function In Python