def upload_dict(s3_conn, s3_prefix, data_to_sync):
bucket_name, prefix = split_s3_path(s3_prefix)<EOL>bucket = s3_conn.get_bucket(bucket_name)<EOL>for key, value in data_to_sync.items():<EOL><INDENT>full_name = '<STR_LIT>'.format(prefix, key)<EOL>s3_key = boto.s3.key.Key(<EOL>bucket=bucket,<EOL>name=full_name<EOL>)<EOL>logging.info('<STR_LIT>', full_name)<EOL>s3_key.set_contents_from_string(json.dumps(value))<EOL><DEDENT>
Syncs a dictionary to an S3 bucket, serializing each value in the
    dictionary as a JSON file with the key as its name.

    Args:
        s3_conn: (boto.s3.connection) an s3 connection
        s3_prefix: (str) the destination prefix
        data_to_sync: (dict)