docs/ruby: several fixes.

thanks @flaviamissi.
docs/python: fix some typos.