End Code Function Python Formatter