I want to hash a string in python 2.7 to obtain the same result as I get in postman by calling pm.request body. The hashing method works correctly when I try with strings, b