Rewriting of thoth to use django