Fix discover_modules() in benchmarks/runall.py to work on Python 3.