use correct format code for exceptions
Issue #17968: Fix memory leak in os.listxattr().
Complete 2 to 3 conversion
Silence unclosed open file ResourceWarning.
Fix ResourceWarnings in test_sax