doesn't that need to be `if path.startswith(prefix + '/'):`?