<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_s3_bucket(self, region, name, bucketName):
 """Sets the S3 bucket location for logfile delivery Args: region (`str`):
 Name of the AWS region name (`str`):
 Name of the CloudTrail Trail bucketName (`str`):
 Name of the S3 bucket to deliver log files to Returns: `None` """

        ct = self.session.client('cloudtrail', region_name=region)
        ct.update_trail(Name=name, S3BucketName=bucketName)

        auditlog(
            event='cloudtrail.set_s3_bucket',
            actor=self.ns,
            data={
                'account': self.account.account_name,
                'region': region
            }
        )
        self.log.info('Updated S3BucketName to {} for {} in {}/{}'.format(
            bucketName,
            name,
            self.account.account_name,
            region
        ))