optimize get_files_path function an ignore specs, __init__.py and __pycache__ folder