'Read an interger value from memory
Args:
- address: address to read (Int)
- intsize: force read size (Int)
Returns:
- mem value (Int)'

def read_int(self, address, intsize=None):

    if (not intsize):
        intsize = self.intsize()
    value = self.readmem(address, intsize)
    if value:
        value = to_int(('0x' + codecs.encode(value[::(-1)], 'hex')))
        return value
    else:
        return None
