Yes I also found this problem Yuanping Song mentioned in chat. Here is my solution. Note only stock log returns are additive, that PDE solution wrt log return has different form.
https://github.com/xcycharles/derivatives/blob/master/hw3%20monte%20carlo.py