This project is made for Simon, but it is here for anyone finds it useful.
This script can be used to easily convert PGN data into FEN for end position analysis.
Chess.com - How to automatically extract FEN code of several ammount of games?
Python 3
python-chess
pip install python-chess
This will create the file "BobbyFischer.fen" with a list of FEN end position strings in the same order as BobbyFischer.pgn.
python batch.py --pgn 'c:\users\your_user\desktop\BobbyFischer.pgn' --out 'c:\users\your_user\desktop\BobbyFischer.fen'