import os
from pywikibot import Site, Page

def get_userfixes(user):
    site = Site('en')
    prefix = user + '/user-fixes/'
    fix_pages = site.prefixindex(prefix, namespace=2)
    userfixes = {}
    for fix_page in fix_pages:
        fixes = fix_page.text.split('\n')
        fix_name = fix_page.title().split('/')[-1]
        userfixes[fix_name] = {
            'regex': True,
            'msg': {
                
            }
        }

        for fix in fixes:
            src, dst = [s.strip() for s in fix.split('->')]
            print(src,dst)
        print(fixes)
        
get_userfixes('YuviPanda')
something what
no\b yes
['something -> what', 'no\\b -> yes']
WARNING: /srv/paws/lib/python3.4/site-packages/ipykernel/__main__.py:7: DeprecationWarning: pywikibot.site.APISite.prefixindex is deprecated; use Site.allpages() instead.

l = list(s.prefixindex('YuviPanda/user-fixes', namespace=2))
WARNING: /srv/paws/lib/python3.4/site-packages/ipykernel/__main__.py:1: DeprecationWarning: pywikibot.site.APISite.prefixindex is deprecated; use Site.allpages() instead.
  if __name__ == '__main__':

f = l[0]
[n.split('->') for n in f.text.split('\n')]
[['something ', ' what'], ['no\\b ', ' yes']]
f.text.strip?