This will work for any sentence, or any paragraph. Note that the sentence must end with a . or it won't be treated as a new sentence. (Stealing .capitalize() which is the better method, hats off to brianpck for that)
a = 'hello. i am a sentence.'
a = '. '.join(i.capitalize() for i in a.split('. '))