Updated script for testing locally.

Writes the output at the end of each iteration to a temporary file and
then reads from that file at the beginning of the next interation.
Merge branch 'master' of github.com:visemet/rankmaniac