updated python 2 vs 3 interpreter check