Switch to mako inheritance