old_contents: import htcondor
  import classad
  
  
  def run(opts, args, **kwargs):
  	from IPython.Shell import IPShellEmbed as embed
  
  	schedd = htcondor.Schedd()
  	r = schedd.query()
  
  	params = {}
  	for result in r:
  		for k in result.keys():
  			if k in params:
  				params[k] += 1
  			else:
  				params[k] = 1
  
  	common = []
  	for k, v in params.items():
  		if v == len(r):
  			common.append(k)
  
  	common.sort()
  
  	embed()()
  
new_contents: 
  def run(opts, args, **kwargs):
  	from IPython.Shell import IPShellEmbed as embed
  	if htcondor:
  		import classad
  
  	schedd = htcondor.Schedd()
  	r = schedd.query()
  
  	params = {}
  	for result in r:
  		for k in result.keys():
  			if k in params:
  				params[k] += 1
  			else:
  				params[k] = 1
  
  	common = []
  	for k, v in params.items():
  		if v == len(r):
  			common.append(k)
  
  	common.sort()
  
  	embed()()
  
subject: fix some issues with nonstandard module imports