I\'m working with Python 3, and I need to validate document files (such as .pdf, .xlsx, and .docx) that I get by request like a binary. I\'m curre