fixing rst typos in python files