and third element of result of the function sys.exc_info. define the function import_by_path with 2 arguments dotted_path and error_prefix set to an empty string..
def import_by_path ( dotted_path , error_prefix = '' ) :