Imports on separate lines, whitespace around operators,

cleaned whitespace in blank lines, fixed bare except, comment updates,
converted ldconfig to use with for reading, PEP 8 fixes on script
operator