The help of replace.py says that it will work on all pages found with a search. As far as I see, this is not the truth -- in two cases listed it exactly 100 titles to work on, while there were more than 100. (I also used -namespace:0 in command line.)