End Code Function Python Definitions For Donkey