I am trying to use str.encode() but I get
str.encode()
>>> \"hello\".encode(hex) Traceback (most recent call last): File \"\", line 1
Use hexlify - http://epydoc.sourceforge.net/stdlib/binascii-module.html