Python Access Nested Functions In Arduino