Upgrading to python 3 files concerning s3 storage