Update python3.md

Changed 2 typos - 
Line51 -  type(lin) -> type(line) 
Line119 - as out_file -> as outfile