Refactored keyrange.py and added documentation.
small linter improvements.
Fix for test breakage.
Merge branch 'master' of github.com:youtube/vitess