aws lambda read and write to s3 python