Minor code cleanup.
Automatic Py3k merge for testing