indenting properly for ruby, and a tweak for python