def prependPackageToClassnames(urls, packageName):
	"""Take web.py formatted url/endpoint tuples and prepend 
	a packageName to each of the endpoint classnames, e.g.

	('/Test/(.*)', 'test') becomes ('/Test/(.*)', 'Test.test')

	>>> prependPackageToClassnames(('/Test/(.*)', 'test'), 'PACKAGE')
	('/Test/(.*)', 'PACKAGE.test')
	>>> prependPackageToClassnames(('/Test/(.*)', 'test', '/Test/Test2', 'test2'), 'PACKAGE')
	('/Test/(.*)', 'PACKAGE.test', '/Test/Test2', 'PACKAGE.test2')"""
	newList = []
	for url, endpoint in zip(urls[::2], urls[1::2]):
		newList += [url, "{}.{}".format(packageName, endpoint)]
	return tuple(newList)