def bind_ack(data):
 if (data[2] != '\x0c'):
  return False
 if (data[36:38] != '\x00\x00'):
  return False
 return True

def bind_ack ( data ) : if ( data [ 2 ] != '\x0c' ) : return False if ( data [ 36 : 38 ] != '\x00\x00' ) : return False return True
ensure the data is a bind ack and that the .