Python Nested Function Access Outer Variable Decelerations From Umbilical Cord