Issue 1: Generating Output that can be used as input

Output of spending.py was close to being of the right form to be
used as input into spending.py. Making it so it actually can be
used as input.