Lots and lots of pylint warning fixes

Change-Id: I9f2f7c6426981cb7ce53a226cc8699b7badc9c2b
diff --git a/db/db.py b/db/db.py
index 6532bb1..10d7ebe 100644
--- a/db/db.py
+++ b/db/db.py
@@ -453,7 +453,7 @@
         except:
             self.connection.rollback()
             raise
-        return port_id        
+        return port_id
 
     # Set the mode of a port in the database. Valid values for mode
     # are "trunk" and "access"