title: Badly Placed ()'s Error within Python Script
body: <p>Running a python script within Linux Emacs shell and keep getting the error 'badly placed ()'s</p>
  
  <p>not sure where there problem originates but here is my script</p>
  
  <pre><code>inputFile = open('ieh.sgdc', 'r')
  outputFile = open('riskAreas.txt', 'w')
  
  cdc_txt = inputFile.readlines(SIZE)
  SIZE = 639
  
  
  for line in inputFile:
     if 'clock' in cdc_txt:
       if '-name' in cdc_txt:
           outputFile.write("clock = ")
           outputFile.append(line[12:8])
           continue
  
      elif reset in line:
        if '-name' in cdc_txt:
          outputFile.write("reset = ")
        outputFile.append(line[12:8])
        continue
  
        if '-value' in cdc_txt:
           outputFile.write("reset = ")
        outputFile.append(line[12:8])
       continue
  
      else:
           break 
  
  
  cdc_txt.next()
  
  inputFile.close()
  outputFile.close()
  </code></pre>