pinMode_PY example improved