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