The string isn't quoted properly: ``` pgn_text = open('morphy.pgn).read() ``` should be ``` pgn_text = open('morphy.pgn').read() ```