Adding generators.py, all tests working.