: class MyThread(Thread):     def __init__(self, command, template, env, build_flavor, logger):         Thread.__init__(self)         self.command = command         self.template = template         self.env = env         self.build_flavor = build_flavor         self.logger = logger      def run(self):         self.logger.info('Running (%s)...this may take several minutes. Please be patient' % self.build_flavor)         run_command(self.command, self.template, self.env)         self.logger.info('Complete (%s)' % self.build_flavor)         