def default_pyflow_args(args):
	"""
	Returns a dictionary of arguments commonly sent to
	a WorkflowRunner.run() method.
	"""
	startFromTasks = None
	ignoreTasksAfter = None
	resetTasks = None
	schedulerArgList = None
	
	if args.startFromTasks:
		startFromTasks = args.startFromTasks.split(',')
	if args.ignoreTasksAfter:
		ignoreTasksAfter = args.ignoreTasksAfter.split(',')
	if args.resetTasks:
		resetTasks = args.resetTasks.split(',')
	if args.schedulerArgList :
		schedulerArgList = args.schedulerArgList.strip("[|]")
		schedulerArgList = schedulerArgList.split(',')
	
	arg_dict = {
			'mode':       args.run_mode,
			'nCores':     args.nCores,
			'memMb':      args.memMb,
			'isDryRun':   args.dry,
			'isContinue': args.isContinue,
			'isForceContinue': args.forceContinue,
			'dataDirRoot':args.pyflow_dir,
			'mailTo':     args.mailTo,
			'startFromTasks': startFromTasks,
			'ignoreTasksAfter': ignoreTasksAfter,
			'resetTasks': resetTasks,
			'schedulerArgList' : schedulerArgList
			}
			
	return arg_dict