For sorting procedure here is used shell's file command.
zipfile, sys, os, shutil, subprocess and BeautifulSoup (bs4)
P.S.: bs4 is not a built-in library. You can install it using pip install beautifulsoup4 (Linux)
more about bs4: https://www.crummy.com/software/BeautifulSoup/bs4/doc/
- chmod +x ziparser.py
- ./ziparser [zip-file-name]