def _mul_args(f):
 args = Mul.make_args(f)
 gs = []
 for g in args:
  if (g.is_Pow and g.exp.is_Integer):
   n = g.exp
   base = g.base
   if (n < 0):
    n = (- n)
    base = (1 / base)
   gs += ([base] * n)
  else:
   gs.append(g)
 return gs

def _mul_args ( f ) : args = Mul . make_args ( f ) gs = [ ] for g in args : if ( g . is_Pow and g . exp . is_Integer ) : n = g . exp base = g . base if ( n < 0 ) : n = ( - n ) base = ( 1 / base ) gs += ( [ base ] * n ) else : gs . append ( g ) return gs
return a list l such that mul == f .