old_contents: from itertools import ifilter
  
  
  def is_multiple_of_three_or_five(num):
      return any(num % x == 0 for x in [3, 5])
  
  
  def main():
      return sum(ifilter(is_multiple_of_three_or_five, xrange(1000)))
  
  
  if __name__ == '__main__':
      print main()
  
new_contents: def main():
      return sum(y for y in xrange(1000) if any(not y % x for x in [3, 5]))
  
  
  if __name__ == '__main__':
      print main()
  
subject: Simplify code.