Fix S3 integ test on Py3
Merge pull request #2466 from danielgtaylor/s3-integ-fix

Fix S3 integ test on Py3. Fixes #2466.