More experiments.
Add memgen.py.