>>> import string
>>> s = 'The quick brown fox jumped over the lazy dog.'
>>> print(s)
The quick brown fox jumped over the lazy dog.
>>> print(string.capwords(s))
The Quick Brown Fox Jumped Over The Lazy Dog.
>>> import string
>>> s = 'The quick brown fox jumped over the lazy dog.'
>>> print(s)
The quick brown fox jumped over the lazy dog.
>>> print(string.capwords(s))
The Quick Brown Fox Jumped Over The Lazy Dog.