write file to s3 from lambda python