title: Python factorization
body: <p>I'd just like to know the best way of listing all integer factors of a number, given a dictionary of its prime factors and their exponents.<br/>
  For example if we have {2:3, 3:2, 5:1}  (2^3 * 3^2 * 5 = 360)<br/>
  Then I could write:<br/></p>
  
  <pre><code>for i in range(4):
    for j in range(3):
      for k in range(1):
        print 2**i * 3**j * 5**k
  </code></pre>
  
  <p>But here I've got 3 horrible for loops. Is it possible to abstract this into a function given any factorization as a dictionary object argument?</p>