Changes based on http://unlogic.co.uk/posts/vim-python-ide.html