def _create_key(key_in_list_format):
    """Create a key from the list provided

    First element is variable name

    eg: ['sample', 'one', 'two'] => 'sample[one][two]'
    """
    if not key_in_list_format:
        return ""
    keys = ''.join([u'[{}]'.format(item) for item in key_in_list_format[1:]])
    return key_in_list_format[0] + keys