oswalk.py interacts better with directories