#NEWLINE# def load_class( s ) : #NEWLINE# #INDENT# ( path , klass ) = s . rsplit ( '.' , 1 ) #NEWLINE# __import__ ( path ) #NEWLINE# mod = sys . modules [ path ] #NEWLINE# return getattr ( mod , klass )