3to2: super calls
str -> basestring in basetypes
catch KeyError
fix superclass calls
fix attribute error
allow custom id separator