how to determine from a python application if x server/x forwarding is running?,os.environ['DISPLAY']