from lib.action import CiscoSparkAction

__all__ = [
    'GenericAction'
]


class GenericAction(CiscoSparkAction):

    def run(self, accessor, method_name, **kwargs):
        a = getattr(self.connection, accessor)
        result = getattr(a, method_name)(**kwargs)
        if method_name == 'list':
            result = list(result)  # iterate generator
        if isinstance(result, list):
            return [x._json for x in result]
        else:
            return result._json

@@ -430,16 +430,45 @@
  result%5D
+  # pylint: disable=no-member
 %0A       
@@ -505,9 +505,38 @@
 lt._json
+  # pylint: disable=no-member
 %0A

Fix lint.