PEP 8 whitespace between functions.
Remove unused import.
Use Python 3's print syntax to be compatible with both 2/3.
Use proper absolute imports in the project.

It would be possible to use the old style, but not in Python 3 and it's also discouraged (see PEP8 among others).
Add vim temp files and egg-info to the .gitignore.
Python 3 removed support for dict.iteritems.
Minor changes to make the flake8 shut up.