Extract header and footer from pdf python. python poplib get headers from emails.