Update test.py

Slowly working out and documenting what this code does. Changed some of the vague variable names to more meaningful ones