refactor things for >2.7
line is deprecated better use file_line
fix dependency