scripts: Remove unnecessary () around if/while conditions in Python

Not needed in Python. Detected by check C0325 in pylint3.

Also replace an

  if len(tag):

with just

  if tag:

Empty strings, byte strings, lists, etc., are falsy in Python.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
diff --git a/scripts/elf_helper.py b/scripts/elf_helper.py
index 1e3b1e2..4612036 100644
--- a/scripts/elf_helper.py
+++ b/scripts/elf_helper.py
@@ -148,7 +148,7 @@
             if member_offset[0] == 0x23:
                 self.member_offset = member_offset[1] & 0x7f
                 for i in range(1, len(member_offset)-1):
-                    if (member_offset[i] & 0x80):
+                    if member_offset[i] & 0x80:
                         self.member_offset += (
                             member_offset[i+1] & 0x7f) << i*7
             else: