title: Code not writing output to file
body: <p>This code is not writing the output to the file. It only dumps the data in the .data file not the output which should be a range from 0 to 1.</p>
  
  <pre><code>import math
  
  f = open('numeric.sm.data', 'r')
  print f
  
  
  maximum = 0
  
  # get the maximum value
  for input in f:
      maximum = max(int(input), maximum)
  f.close()
  
  print('maximum ' + str(maximum))
  
  
  # re-open the file to read in the values
  f = open('numeric.sm.data', 'r')
  print f
  
  o = open('numeric_sm_results.txt', 'w')
  print o
  
  for input in f:
      # method 1: Divide each value by max value
      m1 = float(input) / (maximum)
      o.write(input)
      print repr(input.strip('\n')).rjust(5), repr(m1).rjust(5)
  
  o.close()
  f.close()
  </code></pre>