updating changelog / py docs and bumping version numbers for 2.40