I think you are looking for 'a' instead of 'w' for the buffering parameter:
with open('Bills.txt', 'a') as out_file: [...]
See https://docs.python.org/2/library/functions.html?highlight=open#open
I think you are looking for 'a' instead of 'w' for the buffering parameter:
with open('Bills.txt', 'a') as out_file: [...]
See https://docs.python.org/2/library/functions.html?highlight=open#open