title: Adding bytes in python 2.7
body: <p>Hi I've been trying to iterate through a bytearray, add up all the bytes and then append the result back into the same bytearray. The bytearray looks like this: 
  key = bytearray([0x12, 0x10, 0x32])
  However, when I call sum(key) I get the decimal representation of 84. Any idea how I can change the decimal representation and put it back into a hexadecimal format while keeping it of type int. Thank You</p>