Update python version logic similar to !1873
Update python version logic similar to !1873

keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix,keithroe/vtkoptix