def store(p, file):
    try:
        output_file = open(p, 'w', encoding='utf-8', errors='xmlcharrefreplace')
        output_file.write(file)
    except:
        print('Unable to store the file. Error:', sys.exc_info()[0])
        raise
def store(p, file):
    try:
        output_file = open(p, 'w', encoding='utf-8', errors='xmlcharrefreplace')
        output_file.write(file)
    except:
        print('Unable to store the file. Error:', sys.exc_info()[0])
        raise