Add latest py3k-compatible examples and tests
These commits are rebased so that they can potentially be merged into 6.3 or a later 6.x release. All commits are from previous merge requests that have already been reviewed.
These commits are rebased so that they can potentially be merged into 6.3 or a later 6.x release. All commits are from previous merge requests that have already been reviewed.