human
Converting hex to int in python
assistant
Here is some code to convert hex '\xff' to integer

ord('\xff')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.