code: def open(self):
          
          self.device = open(self.devfile, "wb")
  
          if self.device is None:
              print("Could not open the specified file {0}".format(self.devfile))
docs: Open system file