Part Number: CC2640R2F
I was having the same issue as the poster in this post from a few months back. Their issue was never really noticed or addressed in the response it seems, but if you look closely you can see that the key X and Y portions aren't presented correctly. They appear to be shifted and truncated by one hex digit. I tried to fix it based on the full key that seemed to be presented correctly, but could never get it to work.
However, I just realized the issue. The previous poster (I presume) and I were running the script in Python 2 (2.7.10 on OSX for me). Running it with Python 3, everything works as expected. Just wanted to post so that hopefully the previous post can be updated with this information, since it could have saved me a few hours of debugging attempts.
Thanks!