Why 4 levels of os.path.dirname?