exc is just a module within sqlalchemy that I'd wanna import along with everything else.

Then I think you want
from sqlalchemy import exc
but I don't use sqlalchemy. In any case,
from lib.sqlalchemy import * is different from
from sqlalchemy import * so I would suggest trying the latter first, and if that works then there is something wrong with the "exc" wording.