Arduino If Defined Function In Python