Listing all imported and exported symbols
The imports can be listed as follows:
for entry in pe.DIRECTORY_ENTRY_IMPORT:  print entry.dll  for imp in entry.imports:    print '\t', hex(imp.address), imp.name
Likewise, we can't list the exports:
for exp in pe.DIRECTORY_ENTRY_EXPORT.symbols: Â print hex(pe.OPTIONAL_HEADER.ImageBase + exp.address), exp.name, exp.ordinal