def get_mod_num(module, number):
 if (len(HOUSE.keys()) > module):
  mod = HOUSE.keys()[module]
  if (len(HOUSE[mod].keys()) > number):
   mod_instance = HOUSE[mod].keys()[number]
   return (mod, mod_instance)
 return (None, None)

def get_mod_num ( module , number ) : if ( len ( HOUSE . keys ( ) ) > module ) : mod = HOUSE . keys ( ) [ module ] if ( len ( HOUSE [ mod ] . keys ( ) ) > number ) : mod_instance = HOUSE [ mod ] . keys ( ) [ number ] return ( mod , mod_instance ) return ( None , None )
fetch the module and number instances given their indexes .