def find_file_format(file_name):
        """
        Returns a tuple with the file path and format found, or (None, None)
        """
        for file_format in Format.ALLOWED:
            file_path = '.'.join((file_name, file_format))
            if os.path.exists(file_path):
                return file_path, file_format
        return None, None