code: def get_int(byte_array, signed=True):
      
      return int.from_bytes(byte_array, byteorder='big', signed=signed)
docs: Gets the specified integer from its byte array.
      This should be used by this module alone, as it works with big endian.
  
      :param byte_array: the byte array representing th integer.
      :param signed: whether the number is signed or not.
      :return: the integer representing the given byte array.