import player import ast file = open("game.HEGF", 'r') file = file.read() file = ast.literal_eval(file) player.execgame(file)