scripts: Fix random typo'd whitespace

Reported by pylint's 'bad-whitespace' warning.

Not gonna enable this warning in the CI check, because it flags stuff
like deliberately aligning assignments and gets too cultish. Just a
cleanup pass.

For whatever reason, the common convention in Python is to skip spaces
around '=' when passing keyword arguments and giving default arguments:

    f(x=3, y=4)
    def f(x, y=8):
        ...

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
diff --git a/scripts/gen_app_partitions.py b/scripts/gen_app_partitions.py
index 299f094..1e94142 100644
--- a/scripts/gen_app_partitions.py
+++ b/scripts/gen_app_partitions.py
@@ -98,7 +98,7 @@
 
 def find_obj_file_partitions(filename, partitions):
     with open(filename, 'rb') as f:
-        full_lib = ELFFile( f)
+        full_lib = ELFFile(f)
         if not full_lib:
             sys.exit("Error parsing file: " + filename)
 
@@ -126,7 +126,7 @@
     # Iterate over all object files to find partitions
     for dirpath, _, files in os.walk(args.directory):
         for filename in files:
-            if re.match(r".*\.obj$",filename):
+            if re.match(r".*\.obj$", filename):
                 fullname = os.path.join(dirpath, filename)
                 find_obj_file_partitions(fullname, partitions)
 
@@ -191,7 +191,7 @@
                         help="ELF file")
     parser.add_argument("-o", "--output", required=False,
                         help="Output ld file")
-    parser.add_argument("-v", "--verbose", action="count", default =0,
+    parser.add_argument("-v", "--verbose", action="count", default=0,
                         help="Verbose Output")
     parser.add_argument("-l", "--library", nargs=2, action="append", default=[],
                         metavar=("LIBRARY", "PARTITION"),
diff --git a/scripts/gen_cfb_font_header.py b/scripts/gen_cfb_font_header.py
index 6a2576a..f24185c 100755
--- a/scripts/gen_cfb_font_header.py
+++ b/scripts/gen_cfb_font_header.py
@@ -98,7 +98,7 @@
 
     zephyr_base = os.environ.get('ZEPHYR_BASE', "")
 
-    clean_cmd = [ ]
+    clean_cmd = []
     for arg in sys.argv:
         if arg.startswith("--bindir"):
             # Drop. Assumes --bindir= was passed with '=' sign.
diff --git a/scripts/gen_kobject_list.py b/scripts/gen_kobject_list.py
index 331ada4..22fd065 100755
--- a/scripts/gen_kobject_list.py
+++ b/scripts/gen_kobject_list.py
@@ -73,7 +73,7 @@
 # Regular dictionaries are ordered only with Python 3.6 and
 # above. Good summary and pointers to official documents at:
 # https://stackoverflow.com/questions/39980323/are-dictionaries-ordered-in-python-3-6
-kobjects = OrderedDict ([
+kobjects = OrderedDict([
     ("k_mem_slab", (None, False)),
     ("k_msgq", (None, False)),
     ("k_mutex", (None, False)),
diff --git a/scripts/sanity_chk/expr_parser.py b/scripts/sanity_chk/expr_parser.py
index 6dc7813..78d72f5 100644
--- a/scripts/sanity_chk/expr_parser.py
+++ b/scripts/sanity_chk/expr_parser.py
@@ -101,7 +101,7 @@
     ('left', 'OR'),
     ('left', 'AND'),
     ('right', 'NOT'),
-    ('nonassoc' , 'EQUALS', 'NOTEQUALS', 'GT', 'LT', 'GTEQ', 'LTEQ', 'IN'),
+    ('nonassoc', 'EQUALS', 'NOTEQUALS', 'GT', 'LT', 'GTEQ', 'LTEQ', 'IN'),
 )
 
 def p_expr_or(p):
diff --git a/scripts/sanity_chk/harness.py b/scripts/sanity_chk/harness.py
index 3e14590..c34852e 100644
--- a/scripts/sanity_chk/harness.py
+++ b/scripts/sanity_chk/harness.py
@@ -31,7 +31,7 @@
 
         if config:
             self.type = config.get('type', None)
-            self.regex = config.get('regex', [] )
+            self.regex = config.get('regex', [])
             self.repeat = config.get('repeat', 1)
             self.ordered = config.get('ordered', True)
 
diff --git a/scripts/sanity_chk/ini2yaml.py b/scripts/sanity_chk/ini2yaml.py
index bf3e6ce..c4666f6 100755
--- a/scripts/sanity_chk/ini2yaml.py
+++ b/scripts/sanity_chk/ini2yaml.py
@@ -26,12 +26,12 @@
         else:
             tc[opt] = value
 
-    test = { section : tc}
+    test = {section : tc}
     tests.append(test)
 
 y['tests'] = tests
 if sample:
-    y['sample'] = { 'name': "TBD", 'description': "TBD" }
+    y['sample'] = {'name': "TBD", 'description': "TBD"}
 
 with open(out_file, "w") as f:
-    yaml.dump(y, f, width=50, indent=4,  default_flow_style=False)
+    yaml.dump(y, f, width=50, indent=4, default_flow_style=False)
diff --git a/scripts/sanity_chk/scl.py b/scripts/sanity_chk/scl.py
index 6c73035..9159549 100644
--- a/scripts/sanity_chk/scl.py
+++ b/scripts/sanity_chk/scl.py
@@ -46,8 +46,8 @@
     def _yaml_validate(data, schema):
         if not schema:
             return
-        c = pykwalify.core.Core(source_data = data, schema_data = schema)
-        c.validate(raise_exception = True)
+        c = pykwalify.core.Core(source_data=data, schema_data=schema)
+        c.validate(raise_exception=True)
 
 except ImportError as e:
     log.warning("can't import pykwalify; won't validate YAML (%s)", e)