title: Filter object has no attribute pop
body: <pre><code>colorramps = re.split("#ramp\[([0-9a-fA-F]{6})\](.+?)#rampend\[([0-9a-fA-F]{6})\]", message)
  colorramps.reverse()
  if len(colorramps) &gt; 1:
      starttext = colorramps.pop()
      starttext = starttext.replace("$message", getSaveString(text))
      starttext = starttext.replace("$playername", getSaveString(username), 1)
      complete = [starttext]
      while len(colorramps):
          startcolor = getColor(colorramps.pop())
          colors = filter(None, re.split("#over\[([0-9a-fA-F]{6})\]", colorramps.pop()))
          middletxt = colors.pop()
          endcolor = getColor(colorramps.pop())
          middletxt = middletxt.replace("$message", getSaveString(text))
          middletxt = middletxt.replace("$playername", getSaveString(username), 1)
          middletxt = middletxt.decode("utf")
          if len(colors) &gt; 0:
              colors = map(getColor, colors)
              colors.append(endcolor)
              middletxt = rangeOverColors(middletxt, startcolor, colors)
          else:
              middletxt = getRangeString(middletxt, startcolor, endcolor)
          middletxt = middletxt.encode("utf")
          complete.append(middletxt)
          endtext = colorramps.pop()
          endtext = endtext.replace("$message", getSaveString(text))
          endtext = endtext.replace("$playername", getSaveString(username), 1)
          complete.append(endtext)
      message = "".join(complete)
  else:
      message = message.replace("$message", getSaveString(text))
      message = message.replace("$playername", getSaveString(username), 1)
  return message
  </code></pre>
  
  <p>Hello guys!
  Im getting in line 128, in replaceColorRamps
      middletxt = colors.pop()</p>
  
  <p>AttributeError: 'filter' object has no attribute 'pop'</p>
  
  <p>I used this code for python 2.5 and now im porting it to 3.4..</p>
  
  <p>Can someone help me</p>