Are there any Python libraries for working with PE (Portable Executable) and ELF files? If the library also has write support (instead of simply reading the file structure) it would be a charm ;)