With pywikibot it's not necessary to get the file page from the shared repo.