<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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