Removed defunct functions from gen.py