Fix lazy loading of pylookup