Is it possible to capitalize a word using string formatting? For example,
\"{user} did such and such.\".format(user=\"foobar\")
should return \
You can create your own subclass of string.Formatter which will allow you to recognize a custom conversion that you can use to recase your strings.
myformatter.format('{user!u} did la-dee-dah on {date}, and {pronoun!l} liked it. ', user=x, date=y, pronoun=z)