def load(context, url, callback): bucket_name, object_name = url.split("/", 1) connection = AsyncS3Connection() # load credentials from environment bucket = AsyncBucket(connection, bucket_name) key = AsyncKey(bucket, object_name) key.read(callback=callback)