Assuming you are maintaining a list of all entity2d objects, I believe that the following will work:
for tmp_b:bullet = EachIn entity2dlist
'iterates just the bullets in the list
next
for tmp_p:player = EachIn entity2dlist
'iterates just the players in the same list
next