def _factors_product(factors):
 return Mul(*[(f.as_expr() ** k) for (f, k) in factors])

def _factors_product ( factors ) : return Mul ( * [ ( f . as_expr ( ) ** k ) for ( f , k ) in factors ] )
multiply a list of pairs .