docs: def xpacheck():
  	"""Check if xpa is running"""
  	import os
  	f=os.popen('xpaaccess ds9')
  	l=f.readline()
  	f.close()
  	if l.strip()!='yes':
     		logger.debug("\t Can't get ds9 access, xpaccess said: %s" % ( l.strip()))
  		return (False)
  	return(True)