Array Replace Python Syntax If Else Statement Arduino