ENH: Added method generator.get_header()