End Code Function Python Definitions For In Tune