Use lru_cache and 'with open' to clean up code
Use lru_cache and 'with open' to clean up code

hamsterbacke23/wagtail,mixxorz/wagtail,kaedroho/wagtail,jnns/wagtail,nutztherookie/wagtail,serzans/wagtail,Toshakins/wagtail,hanpama/wagtail,iansprice/wagtail,davecranwell/wagtail,davecranwell/wagtail,mikedingjan/wagtail,FlipperPA/wagtail,quru/wagtail,takeflight/wagtail,inonit/wagtail,FlipperPA/wagtail,nilnvoid/wagtail,JoshBarr/wagtail,nealtodd/wagtail,gasman/wagtail,quru/wagtail,zerolab/wagtail,nealtodd/wagtail,mixxorz/wagtail,mixxorz/wagtail,kurtrwall/wagtail,iansprice/wagtail,iansprice/wagtail,davecranwell/wagtail,Tivix/wagtail,nilnvoid/wagtail,timorieber/wagtail,nutztherookie/wagtail,kaedroho/wagtail,gasman/wagtail,chrxr/wagtail,mikedingjan/wagtail,Tivix/wagtail,hamsterbacke23/wagtail,hamsterbacke23/wagtail,timorieber/wagtail,torchbox/wagtail,Toshakins/wagtail,JoshBarr/wagtail,kurtrwall/wagtail,timorieber/wagtail,thenewguy/wagtail,takeflight/wagtail,rsalmaso/wagtail,thenewguy/wagtail,Tivix/wagtail,gogobook/wagtail,timorieber/wagtail,rsalmaso/wagtail,thenewguy/wagtail,rsalmaso/wagtail,FlipperPA/wagtail,chrxr/wagtail,serzans/wagtail,wagtail/wagtail,zerolab/wagtail,nutztherookie/wagtail,chrxr/wagtail,kurtw/wagtail,quru/wagtail,gasman/wagtail,inonit/wagtail,quru/wagtail,davecranwell/wagtail,nimasmi/wagtail,jnns/wagtail,wagtail/wagtail,rsalmaso/wagtail,thenewguy/wagtail,wagtail/wagtail,jnns/wagtail,takeflight/wagtail,hanpama/wagtail,kaedroho/wagtail,nimasmi/wagtail,hanpama/wagtail,nealtodd/wagtail,wagtail/wagtail,torchbox/wagtail,kaedroho/wagtail,Toshakins/wagtail,gogobook/wagtail,nimasmi/wagtail,Toshakins/wagtail,torchbox/wagtail,nutztherookie/wagtail,kurtw/wagtail,mixxorz/wagtail,mikedingjan/wagtail,zerolab/wagtail,iansprice/wagtail,gogobook/wagtail,nealtodd/wagtail,nilnvoid/wagtail,hamsterbacke23/wagtail,thenewguy/wagtail,wagtail/wagtail,gasman/wagtail,kurtw/wagtail,inonit/wagtail,gasman/wagtail,hanpama/wagtail,zerolab/wagtail,kurtrwall/wagtail,JoshBarr/wagtail,rsalmaso/wagtail,gogobook/wagtail,zerolab/wagtail,mixxorz/wagtail,takeflight/wagtail,FlipperPA/wagtail,serzans/wagtail,mikedingjan/wagtail,nimasmi/wagtail,chrxr/wagtail,kaedroho/wagtail,inonit/wagtail,jnns/wagtail,nilnvoid/wagtail,torchbox/wagtail,serzans/wagtail,kurtw/wagtail,kurtrwall/wagtail,Tivix/wagtail,JoshBarr/wagtail