code: def get_pyserial_version(self):
          
          pyserial_version = pkg_resources.require("pyserial")[0].version
          version = 3.0
          match = self.re_float.search(pyserial_version)
          if match:
              try:
                  version = float(match.group(0))
              except ValueError:
                  version = 3.0   # We will assume you've got latest (3.0+)
          return version
docs: ! Retrieve pyserial module version
          @return Returns float with pyserial module number