<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getNewQuery(connection = None, commitOnEnd=False, *args, **kargs):
 	""" 	Create a new PySQLQuery Class 	 	@param PySQLConnectionObj: Connection Object representing your connection string 	@param commitOnEnd: Default False, When query is complete do you wish to auto commit. This is a one time auto commit 	@author: Nick Verbeck 	@since: 5/12/2008 	@updated: 7/19/2008 - Added commitOnEnd support 	"""

	if connection is None:
		return query.PySQLQuery(getNewConnection(*args, **kargs), commitOnEnd = commitOnEnd)
	else:
		#Updated 7/24/08 to include commitOnEnd here
		#-Chandler Prall
		return query.PySQLQuery(connection, commitOnEnd = commitOnEnd)