another function using the native python os walk function