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

Running ``benchmarks/runall.py`` from Python 3 (even with ``PYTHONPATH`` properly set) gave me an ImportError early.