Sync and update some Python docs and tests.