Refactored jsonpointer.py, added tox.ini

And fixed most of flake8 errors(except 'lines too long' errors where its ok)
I would review this pr not unified :)
Hope it helps!
The code had a mixed use of quotes, in my opinion, one set of quotes should be used consistenly (in cases which allow it), and this type of quotes are more common in python code