handle the simple python auto redirect from foo.json to foo.json/