I think there are less hacky ways to do this.  One way would be to create a dictionary mapping section numbers to locations, and absorb it into `world`.  This would obviate the need for a global variable outside of `world`.