def _client_type(app_id):
 return ('1' if (app_id[0] == '/') else '0')

def _client_type ( app_id ) : return ( '1' if ( app_id [ 0 ] == '/' ) else '0' )
determine whether the given id is a bundle id or a a path to a command .