Type names must be string on py 2 and 3
Avoid excessive model class re-generation