you can load the package titlestring, and then:
>>> from titlecase import titlecase >>> titlecase('i want title case on this string') 'I Want Title Case on This String' >>>