Remove unused variable and clean whitespace
Remove redundant imports
Reindent long line
Move the global import logic for test_multiproc_atexit into the test where it is used.