old_contents: 
  import os
  
  VERSION = (3, 0, 1, 'final', 1)
  BUILD_NUMBER = os.environ.get('BUILD_NUMBER', 'DEV')
  
  
  def get_version():
      version = '%s.%s' % (VERSION[0], VERSION[1])
      if VERSION[2]:
          version = '%s.%s' % (version, VERSION[2])
      if VERSION[3] != 'final':
          version = '%s %s %s' % (version, VERSION[3], VERSION[4])
      if BUILD_NUMBER != 'DEV':
          version = '%s-build.%s' % BUILD_NUMBER
      return version
  
  __version__ = get_version()
  
new_contents: 
  import os
  
  VERSION = (3, 0, 1, 'final', 1)
  BUILD_NUMBER = os.environ.get('BUILD_NUMBER', 'DEV')
  
  
  def get_version():
      version = '%s.%s' % (VERSION[0], VERSION[1])
      if VERSION[2]:
          version = '%s.%s' % (version, VERSION[2])
      if VERSION[3] != 'final':
          version = '%s %s %s' % (version, VERSION[3], VERSION[4])
      if BUILD_NUMBER != 'DEV':
          version = '%s-build.%s' % (version, BUILD_NUMBER)
      return version
  
  __version__ = get_version()
  
subject: fix version number