code: def _load_contents(self, polib, resource):
          
          import struct
          try:
              return polib.mofile(resource)
          except (ValueError, AttributeError, struct.error) as e:
              self.rethrow(
                  "Invalid resource {0}".format(resource),
                  InvalidResourceException)
docs: Parses machine object (MO) format using polib
  
          @type resource: str
          @param resource: resource
  
          @rtype: list