small bugfix for rare cases with multiple inheritance
small bugfix for rare cases with multiple inheritance

fabiansinz/datajoint-python,eywalker/datajoint-python,dimitri-yatsenko/datajoint-python,datajoint/datajoint-python