The first parameter should be called `path` instead of `name` (unfortunately parameter names matter in Python due to the ability to pass named arguments).