old_contents: #! /usr/bin/env python
  # -*- coding: utf-8 -*-
  
  def allSame(s):
      return not filter(lambda x: x != s[0], s)
  
  
  def hasDigit(s):
      return any(map(lambda x: x.isdigit(), s))
  
  
  def getVersion(data):
      data = data.splitlines()
      return filter(
          lambda (x, y):
              len(x) == len(y) and allSame(y) and hasDigit(x) and "." in x,
          zip(data, data[1:])
      )[0][0]
  
new_contents: #! /usr/bin/env python
  # -*- coding: utf-8 -*-
  
  def allSame(s):
      return not filter(lambda x: x != s[0], s)
  
  
  def hasDigit(s):
      return any(map(lambda x: x.isdigit(), s))
  
  
  def getVersion(data):
      data = data.splitlines()
      return filter(
          lambda x, y:
              len(x) == len(y) and allSame(y) and hasDigit(x) and "." in x,
          zip(data, data[1:])
      )[0][0]
  
subject: Update __init__.py