Back to this once again.
I think I will re-write most of the code now that I've learned dictionaries, and, more importantly, OOP. With OOP, I can greatly simplify the horribly complicated worldgen loops and even create a dictionary of worlds, which might be useful for later projects. Saving a dictionary to file is another mental leap I'll have to go through, though.