Basis for garbage collections and memsetting Python structures (not functional yet)