Changes to koth/tdm to support changes to entity.pyx