title: Unexpected EOF while parsing on a very simple class
body: <p>No inputs, just some pseudo private fields and basic assignments, but it is still giving me the unexpected EOF while parsing error. The exception is given at line 28, when there are 24 lines of code. </p>
  
  
  
  <pre class="lang-py prettyprint-override"><code>class Word:
  
      def _init_(self,text,size):
          self._text = text
          self._size = size
  
      def get_size(self):
          return self._size
  
      def set_size(self,size):
          self._size = size
  
      def set_text(self,text):
          self._text = text
  
      def get_text(self):
          return self._text
  </code></pre>
  
  <p>These are the 2 other classes that work closest with this one as requested.</p>
  
  <pre class="lang-py prettyprint-override"><code>from word import Word
  
  class WordCloud:
      def _init_(self, count, freq, stop_words):
          self._count = count
          self._freq = freq
          self._stop_words = stop_words
          self._max = freq.maximum 
          self._min = freq.minimum
          self._words = []
  
          def __createword__(self):
              keys = self._freq.keys()
              list(keys)
              values = self._freq.values()
              list(values)
              for i in (0,self._count,1):
                  if keys[i] not in stop_word:
                      newWord = Word(keys[i], math.log(values[i]))
                      self._words.append(newWord)
                  else:
                       i+= -1
  
      def save(self,filename):
          for i in self._words:
               firstnum = i.get_size()
               for j in self._words:
                   secondnum = j.get_size()
                   if(secondnum &gt; firstnum)and(j&gt;i):
                       self._words[i],self._words[j] = self._words[j],self._words[i]
  
          with open(filename,'w') as f:
               for word in self._words:
                  f.write(word.get_text() + ':' + str(word.get_size()) +'\n')
  
  
  
  
  class HtmlWordCloud(WordCloud):
      def _init_(self,count,freq,stop_words):
          WordCloud._init_(self, count, freq, stop_words)
  
      def save(self, filename):
          def size(self,size):
              maxSize = math.log(self._max)
              minSize= math.log(self._min)
              lowerBound = minSize
              for i in range(0,91,1):
                  upperBound = minSize+((i+1)/91)*(maxSize-minSize)
                  if(size==minSize):
                      return 10
                  if(size&gt;lowerBound) and (size&lt;=upperBound):
                      return 10+i
                  lowerBound = upperBound
          header = '''
  &lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;table&gt;
              &lt;tr&gt;
  '''
  
          f = open(filename,'w')
          f.write(header)
          itercount = 0
          for i in self._words:
              size = size(i.get_size())
              line ='''               &lt;td&gt;&lt;span style = "font-size:'+str(size)+'pt"&gt;'+i.get_text()+'&lt;/span&gt;&lt;/td&gt;
  '''
              f.write(line)
              itercount+=1
              if itercount is 5:
                  newrow ='''
              &lt;/tr&gt;
              &lt;tr&gt;
  '''
                  f.write(newrow)
                  itercount = 0
          tail = '''
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;'''
          f.write(tail)
          f.close()
  </code></pre>