minor python corrections/addtions