End Code Function Python Format String With Variables