Note that
open('words.txt')
looks for words.txt in the current directory. It will only work if you run board.py from src/scrabble. It will fall if you run, for example, python src/scrabble/board.py
from the project root.