Massive pylint fixes
Fix dscl and file write issues
A few other minor line length adjustments and var fixes
Can't close a file you moved!