define deps in setup.py and fix syntax error in generators

That's right, sorry, I change that