Fix TypeError: not all arguments converted during string formatting

Because the string substitution applies only to 'Function %s', not
to the others.