make s3.py independent of util.py