Fixed PyLint warnings and skipped R0904+R0922 messages