def shell_out(self, command, use_shlex=True, require_success=True,
                  message=''):
        if use_shlex:
            command_args = shlex.split(command)
        else:
            command_args = command
        p = subprocess.Popen(
            command_args, stderr=subprocess.PIPE, stdout=subprocess.PIPE
        )
        stdout, stderr = p.communicate()
        if require_success and p.returncode != 0:
            raise BuildError(
                message +
                "command: {0}:\n"
                "stdout: {1}\n"
                "stderr:{2}".format(command, stdout, stderr)
            )
        return stdout, stderr, p.returncode
Tophat prior as it used in the original spearmint code.
dataset/ETHPy150Open mozilla/inventory/mozdns/mozbind/builder.py/DNSBuilder.shell_out--crossover with--dataset/ETHPy150Open automl/RoBO/robo/priors/base_prior.py/TophatPrior.__init__