'Add a lazily loaded parent directory import library.'

def _add_parentdirlib(self, libs, tokens):

    if isinstance(libs, PythonImportLibGenerator):
        libs = libs.libs
    libs = PythonImportLibGenerator(self.mgr, self.trg.lang, self.buf.path, tokens, libs)
    return libs
