This script takes as arguments a text file as input and the file name of an excel file as output. The script uses a comma as a delimiter and passes throught the textfile adding information into the excel sheet .
python excelscript.py -I data.txt -O balances.xlsx
xlsxwriter, optparse
You can download these libraries by using the pip package manager
pip install xlxlsxwriter , optparse