import os
for dpath, dnames, fnames in os.walk('.'):
    for i, fname in enumerate([os.path.join(dpath, fname) for fname in fnames]
        ):
        pass
Python function that similar to bash find command