code: def showDataDirectoriesData(peInstance):
      
      
      print "[+] Data directories:\n"
      dirs = peInstance.ntHeaders.optionalHeader.dataDirectory
      counter = 1
      for dir in dirs:
          print "[%d] --> Name: %s -- RVA: 0x%08x -- SIZE: 0x%08x" % (counter,  dir.name.value,  dir.rva.value,  dir.size.value)
          counter += 1
docs: Prints the DATA_DIRECTORY fields.