in reply to Accessing module variables

I wonder why you don't just use a database instead – say, an SQLite database file? No server required, and now you simply look-up the credentials and URLs that you need for each host.