added submodel pybuilder-hack from Aron