Fix pep8 style issues, var shadowing
Fix OSError catch type, string equality

Also fix catching FUSE errors, which
apparently don't fall off the python
interpreter due to its signal handling,
thus causing the process to hang.