Initializing many objects in an elegant way
<p>I'm looking for a elegant way to initialize many objects.</p>

<p>Let's say that I have a <code>Utils</code> module, which has an interface to SVN, Git, Make and other stuff.</p>

<p>Currently, I'm doing it like this:</p>

<pre><code>from Utils.Config import Config, Properties
from Utils.Utils import PrettyPrint, SVN, Make, Bash, Git

class Build(object):

    def __init__(self):
        self.config = Config()
        self.make = Make()
        self.env = Properties()
        self.svn = SVN()
        self.git = Git()
        self.bash = Bash()
        self.pretty_print = PrettyPrint()
</code></pre>

<p>and.. well, it doesn't looks good. </p>

<p>Is there any way to do this in more elegant way? I suppose that it can be a design problem, but I have no idea how to solve this.</p>

<p>I was thinking about creation <code>Base class</code> which will init all of these classes inside the <code>Utils</code> module. What do you think?</p>