FIX: pyLint cleanup

Round I ( more will come ! )

Fixed few bugs here and there, mostly removed unused imports and renamed variables using built-in names.