Save your time and nerves with EF-Tools. It's a pyRevit Extension for Autodesk Revit. There are 40+ tools in the toolbar and you will be able to improve your workflows or even discover new ones.
Why do you think that https://github.com/h2non/filetype.py is a good alternative to EF-Tools