Python Format Execute Function Python