Code:
//WRONG
testplayer = find_sphere_class(0, "player", 100.0, players, 33, origin)
testplayer will be the number of "player" 's found. You want the values stored in the variable players.
I will come up with a solution tomorrow. I don't have time today.