I had a working script for opening and decrypting Google Chrome cookies which looked like:
decrypted = win32crypt.CryptUnprotectData(enctypted_cookie_value,
Probably you have copied the DPAPI encrypted key value from one user account on Windows and are trying to call CryptUnprotectData WinAPI while logged on as another user. This will not work, by nature of DPAPI.