Instead of using a class attribute (name assigned at the same level as methods), why not use `self.loc_store = etc..`?  Then instead of the global `loc_mapper()` function, you can use a `self.loc_mapper()` method.