def parse_file(self, path): try: with open(path, 'r') as f: return self.parse(f.read()) except IOError: return False