Sounds like what you need to do is:
1. Read the content of the files
2. Parse those contents into the different elements
3. Select the element you want
4. extract the related data for that element
Hey, I found this on the internet; using Google naturally- maybe it will help
GitHub - GeospatialPython/pyshp: This library reads and writes ESRI Shapefiles in pure Python.[
^]