To use, paste the .py file into a folder along with the .pgn file you want to convert.
Upon running the program, a .midi file will be created based on the chess game.
Edit the last line to change the tempo and separation (i.e. whether the ply in a move are played together or not)