'Helper function to write the calculated BOM to files.
Args:
filename [string]: Name of the file to write to.
output_yaml [dict]: Dictionary containing BOM information.'

def write_bom_file(self, filename, output_yaml):

    with open(filename, 'w') as output_file:
        output_yaml['timestamp'] = '{:%Y-%m-%d    %H:%M:%S}'.format(datetime.datetime.utcnow())
        yaml.dump(output_yaml, output_file, default_flow_style=False)
        print 'Wrote    BOM    to    {0}.'.format(filename)
