Update test.py

I'm sure that line 45 should be indented to follow the else statement above it. You're adding a new input/output to the records surely?