Update FilenameToCat.py

Introducing modules in code