generator.py: Fixed printInteger return type