def run_if_active(func):
 @functools.wraps(func)
 def inner(self):
  if (not keyczar_active):
   return
  return func(self)
 return inner

def run_if_active ( func ) : @ functools . wraps ( func ) def inner ( self ) : if ( not keyczar_active ) : return return func ( self ) return inner
method decorator that only runs a test if keyczar is available .