extract expected and actual content for comparison
close open files to make pypy happy
simplify try-except-close for output file
make sure we close the file
One last unclosed file.

Hiding it by calling `file` instead of `open`. Clever!
Merge pull request #14 from mgax/pypy

Pypy