contrib/schema: update generator to rewrite imports

Oh, I didnt realize what this patch was doing.