def s_lego(lego_type, value=None, options={}):
 name = ('LEGO_%08x' % len(blocks.CURRENT.names))
 if (not legos.BIN.has_key(lego_type)):
  raise sex.SullyRuntimeError(('INVALID LEGO TYPE SPECIFIED: %s' % lego_type))
 lego = legos.BIN[lego_type](name, blocks.CURRENT, value, options)
 blocks.CURRENT.push(lego)
 blocks.CURRENT.pop()

def s_lego ( lego_type , value = None , options = { } ) : name = ( 'LEGO_%08x' % len ( blocks . CURRENT . names ) ) if ( not legos . BIN . has_key ( lego_type ) ) : raise sex . SullyRuntimeError ( ( 'INVALID LEGO TYPE SPECIFIED: %s' % lego_type ) ) lego = legos . BIN [ lego_type ] ( name , blocks . CURRENT , value , options ) blocks . CURRENT . push ( lego ) blocks . CURRENT . pop ( )
legos are pre-built blocks .