__import__('module.' + libname)
globals().update(vars(module.libname))
library = import_('PathToLibAndFilename', 'module.')
globals().update(vars(library))
How do I control the module/name of a cython cdef class?