def setBucketCors(bucket):
    cors = boto.s3.cors.CORSConfiguration()
    cors.add_rule(
        id='girder_cors_rule',
        allowed_method=['HEAD', 'GET', 'PUT', 'POST', 'DELETE'],
        allowed_origin=['*'],
        allowed_header=['Content-Disposition', 'Content-Type',
                        'x-amz-meta-authorized-length', 'x-amz-acl',
                        'x-amz-meta-uploader-ip', 'x-amz-meta-uploader-id'],
        expose_header=['ETag'],
        max_age_seconds=3000
        )
    bucket.set_cors(cors)
Initializer value can be:
dataset/ETHPy150Open girder/girder/tests/mock_s3.py/setBucketCors--crossover with--dataset/ETHPy150Open datastax/python-driver/cassandra/util.py/Time.__init__