def _filter_activity_by_user(activity_list, users=[]):
 if (not len(users)):
  return activity_list
 new_list = []
 for activity in activity_list:
  if (activity.user_id not in users):
   new_list.append(activity)
 return new_list

def _filter_activity_by_user ( activity_list , users = [ ] ) : if ( not len ( users ) ) : return activity_list new_list = [ ] for activity in activity_list : if ( activity . user_id not in users ) : new_list . append ( activity ) return new_list
return the given activity_list with activities from the specified users removed .