Local paths removed + minor fixes

As a good practice, you shouldn't name variables after commonly-used modules. Otherwise it can be confusing to someone inspecting the code, or could interfere with someone calling a json method further down in the code. Your variable would overwrite the package import in that method.