def AES_new(key, IV=None):
 if (IV is None):
  IV = fast_urandom16()
 if HAVE_AES:
  return (AES.new(key, AES.MODE_CBC, IV), IV)
 else:
  return (PYAES.AESModeOfOperationCBC(key, iv=IV), IV)

def AES_new ( key , IV = None ) : if ( IV is None ) : IV = fast_urandom16 ( ) if HAVE_AES : return ( AES . new ( key , AES . MODE_CBC , IV ) , IV ) else : return ( PYAES . AESModeOfOperationCBC ( key , iv = IV ) , IV )
return an aes cipher object and random iv if none specified .