Bumps the version

def bump(match):
	"""Bumps the version"""
	before, old_version, after = match.groups()
	major, minor, patch = map(int, old_version.split('.'))
	patch += 1
	if patch == 10:
		patch = 0
		minor += 1
		if minor == 10:
			minor = 0
			major += 1
	new_version = '{0}.{1}.{2}'.format(major, minor, patch)

	print('{0} => {1}'.format(old_version, new_version))

	return before + new_version + after