I don't think you are using the `string` module. Sorry more bikeshedding, but I'll try look for more important things. (pyflakes)[https://pypi.python.org/pypi/pyflakes] really helps me for finding out stuff like unused imports and syntax errors.