Avoid resource warnings under Py3k.

Also, work around edge case on Travis where files aren't found.