Use open as a context manager so that we can be sure the config file is closed
and therefor contains written data.
Remove pypy from allow_failures.
Merge pull request #88 from dreid/pypy-tests

Fix config file tests on PyPy and remove PyPy from allow_failures.