convert Python footprint generators to Python 3