I love using the PeFile library for Python to parse PE files. Is there a similar library for parsing ELF?
You should take a look at pyelftools
It supports ELF and DWARF binary formats. It is a project which is in active development too.
ELF
DWARF