def normalize_build_spec(self, build_spec):
for cmd in build_spec:<EOL><INDENT>if not cmd:<EOL><INDENT>continue<EOL><DEDENT>cmd_name = cmd.keys()[<NUM_LIT:0>]<EOL>cmd_options = cmd.values()[<NUM_LIT:0>]<EOL>cmd_handler = self.get_cmd_handler(cmd_name)<EOL>self.build_cmds.append(cmd_handler(cmd_options))<EOL><DEDENT>
Convert a build spec into a list of Command tuples.
After running this command, self.build_cmds should hold all
the commands that should be run on the disk in self.disk_path.

Args:
    build_spec (dict): The buildspec part from the init file