lambda write json to s3 python