_loc_singleton is the variable in this file (L85) which keeps track of the one and only instance of the location mapper which the app needs to create. Python's very weird about what it calls global vars. functions in the module may read but not write to them unless they specifically declare them global.