profiled this and it was slightly faster to do it this way than the other inline way

fixes SPOT-911
revert the inline for loop back to its expanded form to be a bit more readable

fixes SPOT-910

profiled this to see if the inline loop was faster, but there was
really no difference. the times varied by a couple thousandths of
a second in either direction
added different requirements.txt files that extend a basic one

fixes SPOT-916
reverts change-id: ab19659daa18a97d782b36c58ea8cc3216db31b6

fixes SPOT-913
removes open_anytime from search because it is not used anywhere and the functionality already exists

fixes SPOT-905