mwbot: improve list_pages