I have a module (tools.py) containing many classes. I'd like to extract these out into its own "whyteboard.tools" package, each class being inside its own file.
However, I previously moved from having all my classes in one base directory to being in a package below the root of my project, and had issues with loading in pickled files that had been saved in the old format. (see: http://stackoverflow.com/questions/2121874). I had to monkey patch the sys.modules dict while loading the file and then delete it afterwards. nasty...
What's the best way to do this move?
Is it best to also import each of my classes in the package's __init__
otherwise I'd have to
from whyteboard.tools.pen import Pen
instead of
from whyteboard.tools import Pen