python version scanner code