Fixed pyflakes issue in discrete.
Merge pull request #883 from guyrt/pyflakes-cleanup

BUG: Fixed pyflakes issue in discrete module