Make tern.vim py3-compatible
Make tern.py python-3 compatible
Fix whitespace (as per PEP8)

No logic changes were made; only whitespace changes