import pywikibot
import requests?
requests.TooManyRedirects()