Python 3 scanner generator.