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!
Changing ``>`` to ``>=`` is not refactoring; if this fixes a bug, it should have a test and be included in a separate PR.