def _ask_for_it_by_name(name):
 bits = str(name).split('.')
 if (len(bits) > 1):
  modulename = '.'.join(bits[:(-1)])
 else:
  modulename = bits[0]
 module = __import__(modulename, {}, {}, bits[(-1)])
 if (len(bits) == 1):
  return module
 else:
  return getattr(module, bits[(-1)])

def _ask_for_it_by_name ( name ) : bits = str ( name ) . split ( '.' ) if ( len ( bits ) > 1 ) : modulename = '.' . join ( bits [ : ( - 1 ) ] ) else : modulename = bits [ 0 ] module = __import__ ( modulename , { } , { } , bits [ ( - 1 ) ] ) if ( len ( bits ) == 1 ) : return module else : return getattr ( module , bits [ ( - 1 ) ] )
returns an object referenced by absolute path .