I have a python module that makes use of a huge dictionary global variable, currently I put the computation code in the top section, every first time import or reload of the mod
OR you could just use a database for storing the values in? Check out SQLObject, which makes it very easy to store stuff to a database.