code: def findAll(haystack, needle) :
  	
  	
  	h = haystack
  	res = []
  	f = haystack.find(needle)
  	offset = 0
  	while (f >= 0) :
  		#print h, needle, f, offset
  		res.append(f+offset)
  		offset += f+len(needle)
  		h = h[f+len(needle):]
  		f = h.find(needle)
  
  	return res
docs: returns a list of all occurances of needle in haystack