Removed deadweigth from gen.py