'Fetch the sequence of twitter.User instances, one for each friend
or follower.
Args:
url:
URL to get. Either base_url + (\'/followers/list.json\' or
\'/friends/list.json\').
user_id:
The twitter id of the user whose friends you are fetching.
If not specified, defaults to the authenticated user. [Optional]
screen_name:
The twitter name of the user whose friends you are fetching.
If not specified, defaults to the authenticated user. [Optional]
cursor:
Should be set to -1 for the initial call and then is used to
control what result page Twitter returns.
count:
The number of users to return per page, up to a maximum of 200.
Defaults to 200. [Optional]
total_count:
The upper bound of number of users to return, defaults to None.
skip_status:
If True the statuses will not be returned in the user items.
[Optional]
include_user_entities:
When True, the user entities will be included. [Optional]
Returns:
A sequence of twitter.User instances, one for each friend or follower'

def _GetFriendsFollowers(self, url=None, user_id=None, screen_name=None, cursor=None, count=None, total_count=None, skip_status=False, include_user_entities=True):

    if ((cursor is not None) or (count is not None)):
        warnings.warn("Use    of    'cursor'    and    'count'    parameters    are    deprecated    as    of    python-twitter    3.0.    Please    use    GetFriendsPaged    instead.", DeprecationWarning, stacklevel=2)
    count = 200
    cursor = (-1)
    result = []
    if total_count:
        try:
            total_count = int(total_count)
        except ValueError:
            raise TwitterError({'message': 'total_count    must    be    an    integer'})
        if (total_count <= 200):
            count = total_count
    while True:
        if ((total_count is not None) and ((len(result) + count) > total_count)):
            break
        (next_cursor, previous_cursor, data) = self._GetFriendsFollowersPaged(url, user_id, screen_name, cursor, count, skip_status, include_user_entities)
        if next_cursor:
            cursor = next_cursor
        result.extend(data)
        if ((next_cursor == 0) or (next_cursor == previous_cursor)):
            break
    return result
