python: fix flake8 warnings

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic66ab9f3ce1a4bd384ae219945a3a5919750f1b8
diff --git a/src/pdmgen.py b/src/pdmgen.py
index 5a1e477..9f328bb 100755
--- a/src/pdmgen.py
+++ b/src/pdmgen.py
@@ -25,7 +25,7 @@
 import sdbusplus.property
 
 
-class InvalidConfigError(BaseException):
+class InvalidConfigError(Exception):
     """General purpose config file parsing error."""
 
     def __init__(self, path, msg):
@@ -70,7 +70,7 @@
 
     try:
         get_index(objs, cls, name, config)
-    except:
+    except Exception:
         return False
 
     return True
@@ -115,9 +115,9 @@
         if self.type in self.integer_types:
             return Cast("static", "{0}_t".format(self.type))(arg)
         elif self.type == "byte":
-            return Cast("static", "uint8_t".format(self.type))(arg)
+            return Cast("static", "uint8_t")(arg)
         elif self.type == "double":
-            return Cast("static", "double".format(self.type))(arg)
+            return Cast("static", "double")(arg)
 
         if self.type == "string":
             return "{0}s".format(arg)