<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getNewConnection(*args, **kargs):
 	""" 	Quickly Create a new PySQLConnection class 	 	@param host: Hostname for your database 	@param username: Username to use to connect to database 	@param password: Password to use to connect to database 	@param schema: Schema to use 	@param port: Port to connect on 	@param commitOnEnd: Default False, When query is complete do you wish to auto commit. This is a always on for this connection 	@author: Nick Verbeck 	@since: 5/12/2008 	@updated: 7/19/2008 - Added commitOnEnd support 	"""

	kargs = dict(kargs)
	if len(args) > 0:
		if len(args) >= 1:
			kargs['host'] = args[0]
		if len(args) >= 2:
			kargs['user'] = args[1]
		if len(args) >= 3:
			kargs['passwd'] = args[2]
		if len(args) >= 4:
			kargs['db'] = args[3]
		if len(args) >= 5:
			kargs['port'] = args[4]
		if len(args) >= 6:
			kargs['commitOnEnd'] = args[5]
	return connection.Connection(*args, **kargs)