Bash and python script show unique headers