def output_to_file(datalist):
    """Outputs the processed datadict to a textfile
    
        Mainly used for debugging purposes
    """
    f2 = open('unhw_processed.dat', 'w')
    for item in datalist:
        print('%s %s' % (item[0], item[1]), file=f2)
    f2.close()
