def get_i3_connection():
 global conn
 if (not conn):
  try:
   import i3ipc
  except ImportError:
   import i3 as conn
  else:
   conn = i3ipc.Connection()
 return conn

def get_i3_connection ( ) : global conn if ( not conn ) : try : import i3ipc except ImportError : import i3 as conn else : conn = i3ipc . Connection ( ) return conn
return a valid .