[cleanup] use page_namespaces as a set instead a list
[cleanup] use page_namespaces as a set instead a list

Change-Id: I08733690a8d56e89d2e5dbffab4303e62fc604ab

wikimedia/pywikibot-core,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core