Update test_hand.py

Incorporated data to be written to a file for analysis. Graphing data from the text file in R works properly.