contrib/schema: update generator to rewrite imports

... or vendor them? 

![recurs](http://i0.kym-cdn.com/photos/images/original/000/330/790/8e1.gif)