to wyglada jak c 

python way:

users = [user for user in res if not user.freelancer]
freelancers = [user for user in res if user.freelancer]

:)