'Creates a new list with the give name for the authenticated user.
The twitter.Api instance must be authenticated.
Args:
name:
New name for the list
mode:
\'public\' or \'private\'.
Defaults to \'public\'. [Optional]
description:
Description of the list. [Optional]
Returns:
A twitter.List instance representing the new list'

def CreateList(self, name, mode=None, description=None):

    url = ('%s/lists/create.json' % self.base_url)
    if (not self._oauth_consumer):
        raise TwitterError('The    twitter.Api    instance    must    be    authenticated.')
    parameters = {'name': name}
    if (mode is not None):
        parameters['mode'] = mode
    if (description is not None):
        parameters['description'] = description
    json = self._FetchUrl(url, post_data=parameters)
    data = self._ParseAndCheckTwitter(json)
    return List.NewFromJsonDict(data)
