I like to use 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 binary ELF and DWARF . This is a project that is also actively developing.
ELF
DWARF
There is also pylibelf: https://github.com/crackinglandia/pylibelf
It only supports ELF format, and it is read-only. But he is in active development, and part of the recording is expected at the time I write this.