Refactored python code & how vim imports it