The following code takes values about your browser and hashes them into a device fingerprint that is often used for transaction requests, etc.
All libraries used are base libraries (no need to install any)
fingerprintGen = Fingerprint()
device_fingerprint = fingerprintGen.generateFingerprint()
(The values are preset, you will need to change them in the python file if you want a different fingerprint)
JS Generator Script: https://live.adyen.com/hpp/js/df.js