drop duplicate sys import
minor indentation, whitespace, and spelling fixes
WeakRefFinalizer is unnecessary for python-3.4 and later

Object finalization limitations were removed in PEP 442 [1] so we don't
need custom methods to handle __del__ properly.

[1]: http://legacy.python.org/dev/peps/pep-0442/